diff options
author | Julien Veyssier <julien-nc@posteo.net> | 2024-06-06 15:30:16 +0200 |
---|---|---|
committer | Julien Veyssier <julien-nc@posteo.net> | 2024-06-06 15:30:16 +0200 |
commit | c39c0ab46d0ca33572b77d12bbd65ed4f0c923a9 (patch) | |
tree | ff740320aa00f5f6582c942db9e5b8f29be5bd38 /cron.php | |
parent | edd59ee052e6e6ab775d108c77c0ca20bb622885 (diff) | |
download | nextcloud-server-c39c0ab46d0ca33572b77d12bbd65ed4f0c923a9.tar.gz nextcloud-server-c39c0ab46d0ca33572b77d12bbd65ed4f0c923a9.zip |
fix(cron): avoid accessing unset argv index
Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
Diffstat (limited to 'cron.php')
-rw-r--r-- | cron.php | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |