Code

Fiexed undefined index
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 27 Apr 2006 04:56:44 +0000 (04:56 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 27 Apr 2006 04:56:44 +0000 (04:56 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3130 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/systems/class_servNfs.inc

index 4770a78d11c6ff28d6c99af423f8ec0808063efe..9e339ca318222004415ba31087a6535a91d02281 100644 (file)
@@ -218,10 +218,12 @@ class servnfs extends plugin
     while($test = $ldap->fetch()){
       if($test['dn']==$this->dn)
         continue;
-      foreach($test['goExportEntry'] as $entry){
-        $tmp = split("\|",$entry);
-        if($tmp[0] == $this->name){
-          $message[]="Name already in use";
+      if(isset($test['goExportEntry'])){
+        foreach($test['goExportEntry'] as $entry){
+          $tmp = split("\|",$entry);
+          if($tmp[0] == $this->name){
+            $message[]="Name already in use";
+          }
         }
       }
     }