X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=include%2Ffunctions_debug.inc;h=9c30cec399e8580bfde673549ad827acd33a2e99;hb=5ac46e680e92e8e585e88560985ca46d8211a4b8;hp=472ad7f7fca2f64f3d33b7c6b29d88519ea09989;hpb=fcc078a3131b821697c17c5a3e912e210f75d715;p=gosa.git diff --git a/include/functions_debug.inc b/include/functions_debug.inc index 472ad7f7f..9c30cec39 100644 --- a/include/functions_debug.inc +++ b/include/functions_debug.inc @@ -127,7 +127,7 @@ class Print_a_class { } # build a single table ... may be nested - $this->output .= 'export_flag ? 'onClick="document.getElementById(\'pa_form_'.$this->export_hash.'\').submit();" )' : '' ).'>'; + $this->output .= '
export_flag ? 'onClick="document.getElementById(\'pa_form_'.$this->export_hash.'\').submit();" )' : '' ).'>'; foreach( $array as $key => $value ) { $value_style = 'color:black;'; @@ -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.'
'; @@ -272,7 +276,7 @@ function print_result($RESULT) { '; - print '
'; + print '
'; print ''; foreach($tables as $tableName => $tableCount) {