inc/toolkit.inc.php
changeset 90 d7bee09d98fe
parent 82 c255196bc447
child 91 f6c1336dbef8
--- a/inc/toolkit.inc.php	Wed Mar 26 14:02:59 2008 +0000
+++ b/inc/toolkit.inc.php	Wed Mar 26 14:48:25 2008 +0000
@@ -289,9 +289,10 @@
 	}
 }
 
-function debug_r($array) {
+// Debug print
+function dp($var) {
 	echo "<pre style=\"border: 2px solid blue;\">\n";
-	print_r($array);
+	is_array($var) ? print_r($var) : echo $var ;
 	echo "</pre>\n";
 }