From c39c0ab46d0ca33572b77d12bbd65ed4f0c923a9 Mon Sep 17 00:00:00 2001 From: Julien Veyssier Date: Thu, 6 Jun 2024 15:30:16 +0200 Subject: [PATCH] fix(cron): avoid accessing unset argv index Signed-off-by: Julien Veyssier --- cron.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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