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:
parent
6a26839869
commit
f99de82f68
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user