Daniele Bonini (皮夕): WebDev and DevOps by lots of Sim.pli.city bits пре 2 година
родитељ
комит
fbbad56c73
1 измењених фајлова са 5 додато и 1 уклоњено
  1. 5 1
      Public/index.php

+ 5 - 1
Public/index.php

@@ -276,7 +276,11 @@ if (isset($methods[$url])) {
   
   set_exception_handler('eval_ex_handler');
   $ret = eval($cmd);
-  echo($ret);
+  if ($methods[$url]["return_type"]==="bool") {
+    echo(($ret?"true":"false"));
+  } else {  
+    echo($ret);
+  }  
 
 } else if ($url === "XMLDOC") {