diff --git a/start.php b/start.php index e0279fb..25bb11b 100644 --- a/start.php +++ b/start.php @@ -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) {