diff --git a/etemplate/inc/class.nextmatch_widget.inc.php b/etemplate/inc/class.nextmatch_widget.inc.php index 6bc94b8a25..d4fa24244f 100644 --- a/etemplate/inc/class.nextmatch_widget.inc.php +++ b/etemplate/inc/class.nextmatch_widget.inc.php @@ -147,7 +147,10 @@ return True; } list($app,$class,$method) = explode('.',$value['get_rows']); - $obj = CreateObject($app.'.'.$class); + if ($app && $class) + { + $obj =& CreateObject($app.'.'.$class); + } if (!is_object($obj) || !method_exists($obj,$method)) { $GLOBALS['phpgw_info']['etemplate']['validation_errors'][$name] = "nextmatch_widget::pre_process($cell[name]): '$value[get_rows]' is no valid method !!!";