Code

Don't update if baseMode is not active
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 28 Jan 2010 14:12:12 +0000 (14:12 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 28 Jan 2010 14:12:12 +0000 (14:12 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15423 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/include/class_baseSelector.inc
gosa-core/include/class_listing.inc

index 4082fb660bab4217743b771b8b0d71f42721d8f4..5ff4823981b8bbe166114248c8a951306e4c8098 100644 (file)
@@ -53,8 +53,6 @@ class baseSelector {
     if (isset($this->pathMapping[$base])) {
       $this->base= $base;
       $this->update(true);
-    } else {
-      die("Invalid base selected");
     }
   }
 
index b91c063ee4d1ec22aa87760937008a6358458369..887e3cbf1cbec4513549a6c1f768f602f5c63069 100644 (file)
@@ -476,7 +476,9 @@ class listing {
     $ui= get_userinfo();
 
     // Take care of base selector
-    $this->baseSelector->update();
+    if ($this->baseMode) {
+      $this->baseSelector->update();
+    }
 
     // Save base
     $refresh= false;