From 3fbe7615377ec4fffc520481cc42bd9490a7c516 Mon Sep 17 00:00:00 2001 From: Leander Date: Mon, 27 Mar 2017 16:00:46 +0200 Subject: [PATCH] T1703271600 --- start.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {