From dcb5a86acacb4e8ab99a84d4b5a06684e787144f Mon Sep 17 00:00:00 2001 From: Klaus Leithoff Date: Mon, 16 May 2011 07:46:27 +0000 Subject: [PATCH] fix for bug #1631 on Stylite tracker: no browsing/navigation in egws popup filenavigation used for image browsing for CK-Editor. --- etemplate/inc/class.boetemplate.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etemplate/inc/class.boetemplate.inc.php b/etemplate/inc/class.boetemplate.inc.php index 305f623da8..26d788aef6 100644 --- a/etemplate/inc/class.boetemplate.inc.php +++ b/etemplate/inc/class.boetemplate.inc.php @@ -635,7 +635,7 @@ class boetemplate extends soetemplate { return False; } - if($skip_empty && !isset($pos[$idx])) return false; + if($skip_empty && (!is_array($pos) || !isset($pos[$idx]))) return false; $pos = &$pos[$idx]; } return $pos;