Code

Fixed undefined index in layermenu
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 29 Nov 2007 10:26:52 +0000 (10:26 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 29 Nov 2007 10:26:52 +0000 (10:26 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7936 594d385d-05f5-0310-b6e9-bd551577e9d8

include/class_MultiSelectWindow.inc
plugins/admin/acl/class_divListACL.inc

index aefb8b8f365c2966ed39e0ed0ffe15059cde63fd..15284030deae7c68832939e63403b7ef6a1b62e7 100644 (file)
@@ -591,7 +591,7 @@ class MultiSelectWindow{
   /* Create header snapshot value */
   function get_snapshot_header($layer_menu = FALSE)
   {
-    $str = "&nbsp;";
+    $str = "";
     if($this->parent->snapshotEnabled()){
       $ok = false;
       foreach($this->parent->get_used_snapshot_bases() as $base){
index 2c0374a05b58c455583f3046067620fb3793b9ed..7da9936335571a7ac86694dd3a6d66157e33c7db 100644 (file)
@@ -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);