phpgroupware-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpgroupware-cvs] folders/phplayersmenu/lib layersmenu-common.inc...


From: Sigurd Nes
Subject: [Phpgroupware-cvs] folders/phplayersmenu/lib layersmenu-common.inc...
Date: Sun, 26 Nov 2006 14:17:15 +0000

CVSROOT:        /sources/phpgroupware
Module name:    folders
Changes by:     Sigurd Nes <sigurdne>   06/11/26 14:17:15

Modified files:
        phplayersmenu/lib: layersmenu-common.inc.php 

Log message:
        notice and link

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/folders/phplayersmenu/lib/layersmenu-common.inc.php?cvsroot=phpgroupware&r1=1.3&r2=1.4

Patches:
Index: layersmenu-common.inc.php
===================================================================
RCS file: 
/sources/phpgroupware/folders/phplayersmenu/lib/layersmenu-common.inc.php,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -b -r1.3 -r1.4
--- layersmenu-common.inc.php   23 Apr 2004 09:34:44 -0000      1.3
+++ layersmenu-common.inc.php   26 Nov 2006 14:17:15 -0000      1.4
@@ -637,17 +637,17 @@
 function _depthFirstSearch($tmpArray, $menu_name, $parent_id=1, $level) {
        reset ($tmpArray);
        while (list($id, $foobar) = each($tmpArray)) {
-               if ($foobar["parent_id"] == $parent_id) {
+               if (isset($foobar["parent_id"]) && $foobar["parent_id"] == 
$parent_id) {
                        unset($tmpArray[$id]);
                        unset($this->_tmpArray[$id]);
                        $cnt = count($this->tree) + 1;
                        $this->tree[$cnt]["level"] = $level;
                        $this->tree[$cnt]["text"] = $foobar["text"];
-                       $this->tree[$cnt]["href"] = $foobar["href"];
-                       $this->tree[$cnt]["title"] = $foobar["title"];
-                       $this->tree[$cnt]["icon"] = $foobar["icon"];
-                       $this->tree[$cnt]["target"] = $foobar["target"];
-                       $this->tree[$cnt]["expanded"] = $foobar["expanded"];
+                       $this->tree[$cnt]["href"] = 
(isset($foobar["href"])?$foobar["href"]:'');
+                       $this->tree[$cnt]["title"] = 
(isset($foobar["title"])?$foobar["title"]:'');
+                       $this->tree[$cnt]["icon"] = 
(isset($foobar["icon"])?$foobar["icon"]:'');
+                       $this->tree[$cnt]["target"] = 
(isset($foobar["target"])?$foobar["target"]:'');
+                       $this->tree[$cnt]["expanded"] = 
(isset($foobar["expanded"])?$foobar["expanded"]:'');
                        unset($foobar);
                        if ($id != $parent_id) {
                                $this->_depthFirstSearch($this->_tmpArray, 
$menu_name, $id, $level+1);




reply via email to

[Prev in Thread] Current Thread [Next in Thread]