T1703311302
This commit is contained in:
11
start.php
11
start.php
@@ -17,10 +17,17 @@
|
||||
$questions_count = $database->query('SELECT COUNT(*) FROM "Questions"')['data'][0]['count'];
|
||||
if($length == 0) {
|
||||
$error = 12101;
|
||||
}
|
||||
if($length > $questions_count) {
|
||||
} else if($length > $questions_count) {
|
||||
$error = 12102;
|
||||
$values = array($questions_count);
|
||||
} else {
|
||||
/*
|
||||
* if game for user exists then delete
|
||||
* create new game for user
|
||||
*/
|
||||
if($database->query('SELECT EXISTS (SELECT 1 fROM "Games" WHERE "ID" = $1)', array($uid)) == 't') {
|
||||
|
||||
}
|
||||
}
|
||||
$response = Database::create_response($data, $error, $values);
|
||||
print $response;
|
||||
|
||||
Reference in New Issue
Block a user