aboutsummaryrefslogtreecommitdiffstats
path: root/cron.php
diff options
context:
space:
mode:
Diffstat (limited to 'cron.php')
-rw-r--r--cron.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/cron.php b/cron.php
index 8c0311b53a7..8cd97258003 100644
--- a/cron.php
+++ b/cron.php
@@ -23,7 +23,7 @@ use Psr\Log\LoggerInterface;
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