From: cajus Date: Fri, 21 Aug 2009 13:43:24 +0000 (+0000) Subject: Fix to be able to work with single objectType declarations X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=9fbc732d09be8290d8c11d31ad0610b6fbb8007f;p=gosa.git Fix to be able to work with single objectType declarations git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14105 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/include/class_listing.inc b/gosa-core/include/class_listing.inc index 838377921..e0ca916ef 100644 --- a/gosa-core/include/class_listing.inc +++ b/gosa-core/include/class_listing.inc @@ -140,6 +140,9 @@ class listing { } $this->categories= array(); if (isset($this->xmlData['definition']['objectType'])) { + if(isset($this->xmlData['definition']['objectType']['label'])) { + $this->xmlData['definition']['objectType']= array($this->xmlData['definition']['objectType']); + } foreach ($this->xmlData['definition']['objectType'] as $index => $otype) { $this->objectTypes[]= $this->xmlData['definition']['objectType'][$index]; if (isset($this->xmlData['definition']['objectType'][$index]['category'])){