andre před 4 roky
rodič
revize
a1bcb4a94e
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      index.php

+ 1 - 1
index.php

@@ -9,7 +9,7 @@ if ($db->connect_errno){
 }
 }
 $db->set_charset('utf8');
 $db->set_charset('utf8');
 
 
-function checkToken($token) {
+function checkToken($token,$db) {
     $dbAction = $db->prepare("SELECT description FROM clients WHERE token = ?");
     $dbAction = $db->prepare("SELECT description FROM clients WHERE token = ?");
     $dbAction->bind_param('s',$token);
     $dbAction->bind_param('s',$token);
     $dbAction->execute();
     $dbAction->execute();