# HG changeset patch # User rejo # Date 1206543403 0 # Node ID f6c1336dbef8f513f1ebb479f90ad5bcbdcbb365 # Parent d7bee09d98fe409319bca1f045a8add82f15075f [feladat @ 191] Bugfix. Syntax problem in debug_print function. diff -r d7bee09d98fe -r f6c1336dbef8 inc/toolkit.inc.php --- a/inc/toolkit.inc.php Wed Mar 26 14:48:25 2008 +0000 +++ b/inc/toolkit.inc.php Wed Mar 26 14:56:43 2008 +0000 @@ -290,9 +290,9 @@ } // Debug print -function dp($var) { +function debug_print($var) { echo "
\n"; - is_array($var) ? print_r($var) : echo $var ; + if (is_array($var)) { print_r($var) ; } else { echo $var ; } echo "\n"; }