From 1c75c4e50ece9686e511ddb0eb1177515b8299ab Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 11 Jul 2006 06:50:14 +0000 Subject: [PATCH] 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 --- include/functions_debug.inc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 ); -- 2.30.2