X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=include%2Ffunctions_debug.inc;h=5e5c84f6ea9fe75306edacd177e3c1f1db11b00a;hb=4e21fc2c719f4175c9b0e72ee9fbc95249a16ddf;hp=9fd5d8bcdeca087e7da243a49d7dcbea03385e17;hpb=d506d2b2628f831bf088a1343ea49cb43b892fb9;p=gosa.git
diff --git a/include/functions_debug.inc b/include/functions_debug.inc
index 9fd5d8bcd..5e5c84f6e 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) {