From 1156c9d93f6de9a36a3f380d80e109c93f564a17 Mon Sep 17 00:00:00 2001 From: DariusIII Date: Wed, 26 Sep 2018 10:15:50 +0200 Subject: [PATCH] Fix checking for argv in reset_postprocessing.php --- Changelog | 1 + misc/testing/DB/reset_postprocessing.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Changelog b/Changelog index be944c4cd1..346ff2ff75 100755 --- a/Changelog +++ b/Changelog @@ -1,4 +1,5 @@ 2018-09-26 DariusIII + * Chg: Fix checking for argv in reset_postprocessing.php * Chg: Update egulias/email-validator to version 2.1.6 and laravel/framework to 5.7.6 2018-09-25 DariusIII * Fix: Fix login and user controllers behaviour if firewall is disabled diff --git a/misc/testing/DB/reset_postprocessing.php b/misc/testing/DB/reset_postprocessing.php index 9853faf6f2..88fc9e8b3c 100755 --- a/misc/testing/DB/reset_postprocessing.php +++ b/misc/testing/DB/reset_postprocessing.php @@ -11,7 +11,7 @@ $consoletools = new ConsoleTools(); $ran = false; -if ($argv[1] !== null && $argv[1] === 'all' && $argv[2] !== null && $argv[2] === 'true') { +if (isset($argv[1]) && $argv[1] === 'all' && isset($argv[2]) && $argv[2] === 'true') { $ran = true; $where = ''; if (isset($argv[3]) && $argv[3] === 'truncate') {