Code

Added check to class_plugin::check() to prevent calling $this->config->member_functio...
[gosa.git] / include / functions_debug.inc
index 472ad7f7fca2f64f3d33b7c6b29d88519ea09989..5e5c84f6ea9fe75306edacd177e3c1f1db11b00a 100644 (file)
@@ -183,12 +183,16 @@ 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 );
                                } else {
-                                       $this->output .= '<div style="'.$value_style.'">OBJECT</div>';
+                                       $this->output .= '<div style="'.$value_style.'">OBJECT - '.get_class($value).'</div>';
                                }
                        } else {
                                $this->output .= '<div style="'.$value_style.'" title="'.$type.'">'.$value.'</div>';