From 02a66aedbf8f827671865db633aa20d8dc1083a2 Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 7 Oct 2005 07:01:38 +0000 Subject: [PATCH] Fixed error, Array to String conversion git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1527 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/fai/class_faiHook.inc | 6 +++++- plugins/admin/fai/class_faiScript.inc | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) 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; -- 2.30.2