From 4aea8e09adb5bcc5ba377f657d5ce9119ed1cf0c Mon Sep 17 00:00:00 2001 From: Miles Lott Date: Sat, 23 Feb 2002 18:07:45 +0000 Subject: [PATCH] make _debug_array() look good on php4 again --- phpgwapi/inc/functions.inc.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/phpgwapi/inc/functions.inc.php b/phpgwapi/inc/functions.inc.php index af54650e46..bc06566b54 100644 --- a/phpgwapi/inc/functions.inc.php +++ b/phpgwapi/inc/functions.inc.php @@ -588,7 +588,20 @@ /* Just a wrapper to my new print_r() function I added to the php3 support file. Seek3r */ function _debug_array($array) { + $four = False; + if(@floor(phpversion()) == 4) + { + $four = True; + } + if($four) + { + echo '
';
+		}
 		print_r($array);
+		if($four)
+		{
+			echo '
'; + } } /*!