Browse code

simplify debug output, use print_r for everything

Bernd Wurst authored on31/01/2021 05:18:43
Showing1 changed files
... ...
@@ -22,11 +22,7 @@ function DEBUG($str)
22 22
 {
23 23
     global $debugmode;
24 24
     if ($debugmode) {
25
-        if (is_string($str)) {
26
-            echo htmlspecialchars($str) . "<br />\n";
27
-        } else {
28
-            echo "<pre>".htmlspecialchars(print_r($str, true))."</pre>\n";
29
-        }
25
+        echo "<pre>".htmlspecialchars(print_r($str, true))."</pre>\n";
30 26
     }
31 27
 }
32 28