Code

Added gosaLogServer to config class
[gosa.git] / include / functions_debug.inc
index 9fd5d8bcdeca087e7da243a49d7dcbea03385e17..5e5c84f6ea9fe75306edacd177e3c1f1db11b00a 100644 (file)
@@ -127,7 +127,7 @@ class Print_a_class {
                }
                
                # build a single table ... may be nested
-               $this->output .= '<table style="border:none;" cellspacing="1" '.( !$iteration && $this->export_flag ? 'onClick="document.getElementById(\'pa_form_'.$this->export_hash.'\').submit();" )' : '' ).'>';
+               $this->output .= '<table summary=\"\" style="border:none;" cellspacing="1" '.( !$iteration && $this->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 .= '<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>';
@@ -272,7 +276,7 @@ function print_result($RESULT) {
                </script>
        ';
 
-       print '<table border="0" bgcolor="#000000" cellspacing="1" cellpadding="1">';
+       print '<table summary=\"\" border="0" bgcolor="#000000" cellspacing="1" cellpadding="1">';
        
        print '<tr>';
        foreach($tables as $tableName => $tableCount) {