Code

We better show the data trace only in debug_ldap mode
[gosa.git] / gosa-core / include / class_listing.inc
index 39342d9fec4992dd420c50375fbad54f150ac7db..10c05d9652012ebf1b6fcb3bc843858a37747f95 100644 (file)
@@ -1093,6 +1093,12 @@ class listing {
         if (isset($action['label'])){
           $result.= "<li$separator><a href='#'>$img"._($action['label'])."&nbsp;<img border='0' src='images/forward-arrow.png'></a>";
         }
+
+        // Ensure we've an array of actions, this enables sub menus with only one action.
+        if(isset($action['action']['type'])){
+          $action['action'] = array($action['action']);
+        }
+
         $result.= $this->recurseActions($action['action'])."</li>";
         $level--;
         $separator= "";