Code

Fixed undefined index error.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 27 Mar 2008 08:44:19 +0000 (08:44 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 27 Mar 2008 08:44:19 +0000 (08:44 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10011 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/fai/admin/fai/class_FAI.inc

index f408ef4a6efd04d6d1448cb7918df4d229312eac..f6f806185e295efdd04d423dd3c58cbee45857c4 100644 (file)
@@ -186,7 +186,7 @@ class FAI
         $ar1[$key1] = $val1[0];
       }
 
-      if((is_array($ar2[$key1])) && (count($ar2[$key1])==1)){
+      if(isset($ar2[$key1])&&  (is_array($ar2[$key1])) && (count($ar2[$key1])==1)){
         $val1 = $val1[0];
         $ar2[$key1] = $ar2[$key1][0];
       }