From 56c7c34c19bfbc862c273a7000b3e9fa26e4a3b3 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Mon, 29 Jun 2015 20:39:32 +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 8a3142215d..f099fd2c25 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'])