Code

Added timeout to GOsa::log mysql connections.
[gosa.git] / gosa-core / include / class_listing.inc
index 838377921b1509b6079aa7dd11a3734df44e0a9c..e0ca916ef09189fa7e64a337fc6435643e90a057 100644 (file)
@@ -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'])){