From 67253c858b7c867ee5fa3a9b4bbfde1fc1ee81d1 Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 4 Jan 2010 08:56:53 +0000 Subject: [PATCH] Fixed PHP Warnings when creating a new FAIrelease git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14994 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/include/class_plugin.inc | 3 +++ 1 file changed, 3 insertions(+) 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']); } -- 2.30.2