Code

Mark empty arrays in print_a, to be able to make a difference between empty arrays...
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 11 Jul 2006 06:50:14 +0000 (06:50 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 11 Jul 2006 06:50:14 +0000 (06:50 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4088 594d385d-05f5-0310-b6e9-bd551577e9d8

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 );