From 9fbc732d09be8290d8c11d31ad0610b6fbb8007f Mon Sep 17 00:00:00 2001 From: cajus Date: Fri, 21 Aug 2009 13:43:24 +0000 Subject: [PATCH] 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 --- gosa-core/include/class_listing.inc | 3 +++ 1 file changed, 3 insertions(+) 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'])){ -- 2.30.2