Code

Fixed error
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 5 May 2011 14:13:09 +0000 (14:13 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 5 May 2011 14:13:09 +0000 (14:13 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20782 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/goto/admin/systems/goto/Device/class_InstallRecipe.inc

index fe34a37baecd8117cf73435be11ee55a968b7901..a7a1e6f13c692e72103a84cf4a7cd825b7ba48f7 100644 (file)
@@ -95,7 +95,7 @@ class InstallRecipe extends plugin
         // Detect account status by checking the used objectClasses
         $this->is_account = FALSE;
         foreach($this->map as $type){
-            if(in_array($type['objectClass'], $this->attrs['objectClass'])){
+            if(isset($this->attrs['objectClass']) && in_array($type['objectClass'], $this->attrs['objectClass'])){
                 $this->installBootstrapMethod = $type['bootstrap'];
                 $this->installConfigManagement = $type['type'];
                 $this->is_account = TRUE;