From d7a953a60c4df4528b76429cc7c2694798033de3 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Mon, 30 Jan 2012 22:53:48 +0000 Subject: [PATCH] fixed fatal error calling widgetExists on a non-object --- etemplate/inc/class.historylog_widget.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/etemplate/inc/class.historylog_widget.inc.php b/etemplate/inc/class.historylog_widget.inc.php index 10f6c0f86c..68b85f4c5a 100644 --- a/etemplate/inc/class.historylog_widget.inc.php +++ b/etemplate/inc/class.historylog_widget.inc.php @@ -55,7 +55,7 @@ class historylog_widget * @param array &$cell array with the widget, can be modified for ui-independent widgets * @return boolean true if extra label is allowed, false otherwise */ - private function pre_process_helper(&$value, &$cell) + private function pre_process_helper(&$value, &$cell, etemplate $tmpl) { if (empty($value) && (string)$value !== '0') { @@ -147,7 +147,7 @@ class historylog_widget switch ($cell['type']) { case 'historylog-helper': - return $this->pre_process_helper($value, $cell); + return $this->pre_process_helper($value, $cell, $tmpl); } $app = is_array($value) ? $value['app'] : $GLOBALS['egw_info']['flags']['currentapp']; self::$status_widgets = is_array($value) && isset($value['status-widgets']) ? $value['status-widgets'] : null;