From a3191b8f13f800fffb449d8c8183daf9323ab545 Mon Sep 17 00:00:00 2001 From: cajus Date: Thu, 28 Jan 2010 14:12:12 +0000 Subject: [PATCH] Don't update if baseMode is not active git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15423 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/include/class_baseSelector.inc | 2 -- gosa-core/include/class_listing.inc | 4 +++- 2 files changed, 3 insertions(+), 3 deletions(-) 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; -- 2.30.2