From: hickert Date: Thu, 29 Nov 2007 10:26:52 +0000 (+0000) Subject: Fixed undefined index in layermenu X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=8fb1cbc4dc962f892d1dd927e2dadee857659dbb;p=gosa.git Fixed undefined index in layermenu git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7936 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/include/class_MultiSelectWindow.inc b/include/class_MultiSelectWindow.inc index aefb8b8f3..15284030d 100644 --- a/include/class_MultiSelectWindow.inc +++ b/include/class_MultiSelectWindow.inc @@ -591,7 +591,7 @@ class MultiSelectWindow{ /* Create header snapshot value */ function get_snapshot_header($layer_menu = FALSE) { - $str = " "; + $str = ""; if($this->parent->snapshotEnabled()){ $ok = false; foreach($this->parent->get_used_snapshot_bases() as $base){ diff --git a/plugins/admin/acl/class_divListACL.inc b/plugins/admin/acl/class_divListACL.inc index 2c0374a05..7da993633 100644 --- a/plugins/admin/acl/class_divListACL.inc +++ b/plugins/admin/acl/class_divListACL.inc @@ -171,8 +171,11 @@ class divListACL extends MultiSelectWindow /* Add snapshot icons */ if(preg_match("/(c.*w|w.*c)/",$acl_all)){ - $s .= "..|---|\n"; - $s .= $this->get_snapshot_header(TRUE); + $str = $this->get_snapshot_header(TRUE) ; + if(!empty($str)){ + $s .= "..|---|\n"; + $s .= $str; + } } $this->SetDropDownHeaderMenu($s);