author | rejo |
Wed, 26 Mar 2008 14:48:25 +0000 | |
changeset 90 | d7bee09d98fe |
parent 89 | 61c49e66c9b0 |
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"; }