Daniele Bonini (皮夕): WebDev and DevOps by lots of Sim.pli.city bits 2 жил өмнө
parent
commit
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") {