Retourne un objet au lieu de la chaine de caractère true ou false lors

de la vérification des mots.
This commit is contained in:
Yoann 2011-04-07 10:12:37 +02:00
parent 6a26839869
commit f99de82f68

View File

@ -79,9 +79,9 @@ function main()
throw new Exception("La requête est incomplète", 2); throw new Exception("La requête est incomplète", 2);
if(wordExist($_GET['word'])) if(wordExist($_GET['word']))
echo 'true'; echo true;
else else
echo 'false'; echo false;
} }
else if($action == 5) { // Get relations (JSON) else if($action == 5) { // Get relations (JSON)
echo getGameRelationsJSON(); echo getGameRelationsJSON();