X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=include%2Ffunctions_debug.inc;h=5e5c84f6ea9fe75306edacd177e3c1f1db11b00a;hb=89d5b00ebf8dc679c97094d2bfb39fd7ac66225a;hp=472ad7f7fca2f64f3d33b7c6b29d88519ea09989;hpb=fcc078a3131b821697c17c5a3e912e210f75d715;p=gosa.git diff --git a/include/functions_debug.inc b/include/functions_debug.inc index 472ad7f7f..5e5c84f6e 100644 --- a/include/functions_debug.inc +++ b/include/functions_debug.inc @@ -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 .= '
Array (empty)
'; + } } elseif($type == 'object') { if( $this->show_object_vars ) { $this->print_a( get_object_vars( $value ), TRUE, $key_bg_color ); } else { - $this->output .= '
OBJECT
'; + $this->output .= '
OBJECT - '.get_class($value).'
'; } } else { $this->output .= '
'.$value.'
';