From ed97ead93e73295a7e84bd5ed3071bd95b0413d2 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Mon, 29 Jun 2015 20:33:10 +0000 Subject: [PATCH] If app is not found in get_rows, use the template --- etemplate/inc/class.etemplate_widget_nextmatch.inc.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/etemplate/inc/class.etemplate_widget_nextmatch.inc.php b/etemplate/inc/class.etemplate_widget_nextmatch.inc.php index 9729eb53d3..a05da14874 100644 --- a/etemplate/inc/class.etemplate_widget_nextmatch.inc.php +++ b/etemplate/inc/class.etemplate_widget_nextmatch.inc.php @@ -122,6 +122,10 @@ class etemplate_widget_nextmatch extends etemplate_widget $send_value = $value; list($app) = explode('.',$value['get_rows']); + if(!$GLOBALS['egw_info']['apps'][$app]) + { + list($app) = explode('.',$this->attrs['template']); + } // Check for a favorite in URL if($_GET['favorite'] && $value['favorites'])