From: cajus Date: Thu, 28 Jan 2010 14:12:12 +0000 (+0000) Subject: Don't update if baseMode is not active X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=a3191b8f13f800fffb449d8c8183daf9323ab545;p=gosa.git Don't update if baseMode is not active git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15423 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/include/class_baseSelector.inc b/gosa-core/include/class_baseSelector.inc index 4082fb660..5ff482398 100644 --- a/gosa-core/include/class_baseSelector.inc +++ b/gosa-core/include/class_baseSelector.inc @@ -53,8 +53,6 @@ class baseSelector { if (isset($this->pathMapping[$base])) { $this->base= $base; $this->update(true); - } else { - die("Invalid base selected"); } } diff --git a/gosa-core/include/class_listing.inc b/gosa-core/include/class_listing.inc index b91c063ee..887e3cbf1 100644 --- a/gosa-core/include/class_listing.inc +++ b/gosa-core/include/class_listing.inc @@ -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;