|
|
@@ -13,9 +13,9 @@ function checkToken($token,$db) {
|
|
|
$dbAction = $db->prepare("SELECT description FROM clients WHERE token = ?");
|
|
|
$dbAction->bind_param('s',$token);
|
|
|
$dbAction->execute();
|
|
|
- $dbAction->bind_result($description);
|
|
|
- echo "$description blubb $dbAction->num_rows" . PHP_EOL;
|
|
|
- if ($dbAction->num_rows == 1){
|
|
|
+ $dbAction->store_result();
|
|
|
+ echo $dbAction->num_rows() . PHP_EOL;
|
|
|
+ if ($dbAction->num_rows() == 1){
|
|
|
return true;
|
|
|
}
|
|
|
return false;
|