diff --git a/cron.php b/cron.php index 8c0311b53a777..8cd97258003fa 100644 --- a/cron.php +++ b/cron.php @@ -23,7 +23,7 @@ try { require_once __DIR__ . '/lib/base.php'; - if ($argv[1] === '-h' || $argv[1] === '--help') { + if (isset($argv[1]) && ($argv[1] === '-h' || $argv[1] === '--help')) { echo 'Description: Run the background job routine