andre 4 years ago
parent
commit
d47e9c3b49
1 changed files with 2 additions and 2 deletions
  1. 2 2
      index.php

+ 2 - 2
index.php

@@ -25,8 +25,8 @@ function set($ip,$db) {
     $dbAction->bind_param('i',$ip);
     return $dbAction->execute();
 }
-
-if (checkToken($token,$db) == true){
+$client = checkToken($token,$db);
+if ($client){
     if(set(ip2long($ip),$db)){
         echo "$token inserted $ip" . PHP_EOL;
     } else {