From: hickert Date: Mon, 4 Jan 2010 08:56:53 +0000 (+0000) Subject: Fixed PHP Warnings when creating a new FAIrelease X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=67253c858b7c867ee5fa3a9b4bbfde1fc1ee81d1;p=gosa.git Fixed PHP Warnings when creating a new FAIrelease git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14994 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/include/class_plugin.inc b/gosa-core/include/class_plugin.inc index 17e05fcc9..0691c2060 100644 --- a/gosa-core/include/class_plugin.inc +++ b/gosa-core/include/class_plugin.inc @@ -887,6 +887,9 @@ class plugin /* FAIvariable=.../..., cn=.. could not be saved, because the attribute FAIvariable was different to the dn FAIvariable=..., cn=... */ + + if(!is_array($new['objectClass'])) $new['objectClass'] = array($new['objectClass']); + if(in_array_ics("FAIdebconfInfo",$new['objectClass'])){ $new['FAIvariable'] = $ldap->fix($new['FAIvariable']); }