fonctions CRUD par defaut
[mtweb] / mw / app / init / 0100_functions.php
index 061cef9..b69728d 100644 (file)
@@ -1,6 +1,7 @@
 <?php
 
   function debug($content){
+    $content = is_bool($content) ? "bool(".($content ? "true" : "false").")" : $content;
     echo PHP_SAPI == "cli" ?
       "\n".print_r($content, true)."\n"
     : "<pre class=\"debug\">".htmlentities(print_r($content, true), ENT_QUOTES, "UTF-8")."</pre>";