From: hickert Date: Fri, 7 Oct 2005 07:01:38 +0000 (+0000) Subject: Fixed error, Array to String conversion X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=02a66aedbf8f827671865db633aa20d8dc1083a2;p=gosa.git Fixed error, Array to String conversion git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1527 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/fai/class_faiHook.inc b/plugins/admin/fai/class_faiHook.inc index 06df39726..a6a5d7050 100644 --- a/plugins/admin/fai/class_faiHook.inc +++ b/plugins/admin/fai/class_faiHook.inc @@ -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; diff --git a/plugins/admin/fai/class_faiScript.inc b/plugins/admin/fai/class_faiScript.inc index 2ec36ad96..57de64876 100644 --- a/plugins/admin/fai/class_faiScript.inc +++ b/plugins/admin/fai/class_faiScript.inc @@ -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;