T1703271600

This commit is contained in:
Leander
2017-03-27 16:00:46 +02:00
parent 8901180d85
commit 3fbe761537

View File

@@ -14,7 +14,7 @@
$length = ($_GET['length'] && gettype(+$_GET['length']) == 'integer') ? +$_GET['length'] : 10;
$database = new Database();
$questions_count = $database->query('SELECT COUNT(*) FROM "Questions"')['data'][0]['count'];
if($length = 0) {
if($length == 0) {
$error = 12101;
}
if($length > $questions_count) {