From 483b3d0a7ba4db2eb852ba293801ca8f2c5a7faa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20St=C3=B6ckel?= Date: Thu, 2 Dec 2010 15:53:41 +0000 Subject: [PATCH] Fixed MyStylite #1062 --- jdots/inc/class.jdots_framework.inc.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/jdots/inc/class.jdots_framework.inc.php b/jdots/inc/class.jdots_framework.inc.php index 865b1ec2c4..23df7a5f2a 100755 --- a/jdots/inc/class.jdots_framework.inc.php +++ b/jdots/inc/class.jdots_framework.inc.php @@ -812,7 +812,10 @@ class jdots_framework extends egw_framework $active_tab = $url_tab = self::app_from_url($url); $last_direct_url = $url; } - if ($active_tab) + //self::app_from_url might return an application the user has no rights + //for or may return an application that simply does not exist. So check first + //whether the $active_tab really exists in the $apps array. + if ($active_tab && array_key_exists($active_tab, $apps)) { $apps[$active_tab]['openOnce'] = str_replace('&cd=yes','',$url); $store_prefs = true;