Code

Updated FolderWidget
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 13 Oct 2010 09:12:29 +0000 (09:12 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 13 Oct 2010 09:12:29 +0000 (09:12 +0000)
-Removed debug code
-Fixed regex

git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20020 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/groupware/personal/groupware/FolderWidget/class_FolderWidget.inc

index 071de13fdb8e66b1f4aaf569634b0f6d281ee39a..b98c5be2aed87d7fbec50bad990667c034f087fe 100644 (file)
@@ -160,11 +160,9 @@ class FolderWidget extends plugin
                 $entryPath = (empty($entryPath)) ? $name : "{$entryPath}{$separator}{$name}";
                 $entryBase =  $this->pathToDn($entryPath);
 
-                echo $entryPath."<br>";
-
                 // Add eventually missing subFolders, to enable the navigation 
                 //  into these folders via the management lists.
-                if(preg_match("/^".preg_quote($this->accountPrefix,'/').$this->accountPrefix, $entryPath)){
+                if(preg_match("/^".preg_quote($this->accountPrefix,'/')."/", $entryPath)){
                     if(!isset($current[$entryPath])){
                         $current[$entryPath] = array();
                         $current[$entryPath]['children'] = array();