Code

Fixed error, Array to String conversion
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 7 Oct 2005 07:01:38 +0000 (07:01 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 7 Oct 2005 07:01:38 +0000 (07:01 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1527 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/fai/class_faiHook.inc
plugins/admin/fai/class_faiScript.inc

index 06df397264b700a98d2d59ec1ed6d8ff3deff466..a6a5d7050e7a7bf34f97cc5b6bd515982009d2da 100644 (file)
@@ -271,7 +271,11 @@ class faiHook extends plugin
         if(empty($obj[$attrs])){
           $obj[$attrs] = array();
         }
-        $tmp[$attrs] = stripslashes($obj[$attrs]);
+        if(!is_array($obj[$attrs])){
+          $tmp[$attrs] = stripslashes($obj[$attrs]);
+        }else{
+          $tmp[$attrs] = $obj[$attrs];
+        }
       }    
 
       $tmp['objectClass'] = $this->subClasses;
index 2ec36ad96b0ebaa9406a1b3bc6297421190f85bf..57de6487616fb21044f49822a5f157f949d99f71 100644 (file)
@@ -261,7 +261,11 @@ class faiScript extends plugin
         if(empty($obj[$attrs])){
           $obj[$attrs] = array();
         }
-        $tmp[$attrs] = stripslashes($obj[$attrs]);
+        if(!is_array($obj[$attrs])){
+          $tmp[$attrs] = stripslashes($obj[$attrs]);
+        }else{
+          $tmp[$attrs] = $obj[$attrs];
+        }
       }    
         
       $tmp['objectClass'] = $this->subClasses;