aboutsummaryrefslogtreecommitdiffstats
path: root/cron.php
diff options
context:
space:
mode:
authorJulien Veyssier <julien-nc@posteo.net>2024-06-06 15:30:16 +0200
committerJulien Veyssier <julien-nc@posteo.net>2024-06-06 15:30:16 +0200
commitc39c0ab46d0ca33572b77d12bbd65ed4f0c923a9 (patch)
treeff740320aa00f5f6582c942db9e5b8f29be5bd38 /cron.php
parentedd59ee052e6e6ab775d108c77c0ca20bb622885 (diff)
downloadnextcloud-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.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