Skip to content

Commit

Permalink
Fix checking for argv in reset_postprocessing.php
Browse files Browse the repository at this point in the history
  • Loading branch information
DariusIII committed Sep 26, 2018
1 parent 86b2f63 commit 1156c9d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions Changelog
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion misc/testing/DB/reset_postprocessing.php
Original file line number Diff line number Diff line change
Expand Up @@ -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') {
Expand Down

0 comments on commit 1156c9d

Please sign in to comment.