From: hickert Date: Fri, 15 Oct 2010 08:59:51 +0000 (+0000) Subject: Updated Folder Widget X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=b65a01e60f124946176c974738f8c01ef4f9a6ff;p=gosa.git Updated Folder Widget -Do not allow to remove the root folder git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20056 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/groupware/personal/groupware/FolderWidget/class_FolderWidget.inc b/gosa-plugins/groupware/personal/groupware/FolderWidget/class_FolderWidget.inc index 3a88a3b0c..368e3b06d 100644 --- a/gosa-plugins/groupware/personal/groupware/FolderWidget/class_FolderWidget.inc +++ b/gosa-plugins/groupware/personal/groupware/FolderWidget/class_FolderWidget.inc @@ -257,6 +257,10 @@ class FolderWidget extends plugin */ function removeByBase($base) { + // Do not allow to remove the root base. + // This would mean the account itself was removed. + if($base = $this->rootBase) return; + $this->_recursiveRemoveByBase($this->folderList['recursive'], $base); $this->_recursiveRemoveByBase($this->folderList['linear'], $base); $this->FolderWidgetListing->setFolderList($this->folderList);