fix(cron): avoid accessing unset argv index

Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
pull/45694/head
Julien Veyssier 2024-06-06 15:30:16 +07:00
parent edd59ee052
commit c39c0ab46d
No known key found for this signature in database
GPG Key ID: 4141FEE162030638
1 changed files with 1 additions and 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