From: hickert Date: Tue, 11 Jul 2006 06:50:14 +0000 (+0000) Subject: Mark empty arrays in print_a, to be able to make a difference between empty arrays... X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=1c75c4e50ece9686e511ddb0eb1177515b8299ab;p=gosa.git Mark empty arrays in print_a, to be able to make a difference between empty arrays and empty strings. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4088 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/include/functions_debug.inc b/include/functions_debug.inc index 472ad7f7f..24fd84275 100644 --- a/include/functions_debug.inc +++ b/include/functions_debug.inc @@ -183,7 +183,11 @@ 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 );