Code

fixed PHP Fehler "Undefined index: goExportEntry"
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 20 Apr 2006 12:51:12 +0000 (12:51 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 20 Apr 2006 12:51:12 +0000 (12:51 +0000)
596 gosa/include/class_config.inc

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

include/class_config.inc

index db13e4ac94acf64ec3827941a71827f981737ccc..6f649d70319688f29af76640cc4623652942b00d 100644 (file)
@@ -566,7 +566,9 @@ class config  {
     $a_res = $ldap->search("(objectClass=goShareServer)",array("goExportEntry","cn"));
     $return= array();
     while($entry = $ldap->fetch($a_res)){
-      unset($entry['goExportEntry']['count']);
+      if(isset($entry['goExportEntry']['count'])){
+        unset($entry['goExportEntry']['count']);
+      }
       foreach($entry['goExportEntry'] as $export){
         $shareAttrs = split("\|",$export);
         if($listboxEntry) {