# HG changeset patch # User rejo # Date 1206542905 0 # Node ID d7bee09d98fe409319bca1f045a8add82f15075f # Parent 61c49e66c9b04a0ade09609bb43045c96e9e018d [feladat @ 190] Changed 'print debug' function a tiny bit. diff -r 61c49e66c9b0 -r d7bee09d98fe inc/toolkit.inc.php --- 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 "
\n"; - print_r($array); + is_array($var) ? print_r($var) : echo $var ; echo "\n"; }