Code

some sieve filter updates
[gosa.git] / include / functions_debug.inc
index 472ad7f7fca2f64f3d33b7c6b29d88519ea09989..24fd84275107b00870c12eb0463af764d2417665 100644 (file)
@@ -183,7 +183,11 @@ class Print_a_class {
                        
                        # value output
                        if($type == 'array') {
-                               $this->print_a( $value, TRUE, $key_bg_color );
+                               if(count($value)){
+                                       $this->print_a( $value, TRUE, $key_bg_color );
+                               }else{
+                                       $this->output .= '<div style="color:blue;">Array (empty)</div>';
+                               }
                        } elseif($type == 'object') {
                                if( $this->show_object_vars ) {
                                        $this->print_a( get_object_vars( $value ), TRUE, $key_bg_color );