diff --git a/dev/api.php b/dev/api.php index fddb00d..7a0f79e 100644 --- a/dev/api.php +++ b/dev/api.php @@ -1,8 +1,6 @@ query($query) or showerror(); -$numrows = $result->num_rows; +$row = mysqli_fetch_assoc($result); //check if valid -if(!$numrows) { +if(!$row['valid']) { $api_key_valid = 0; } else {