fix(cron): avoid accessing unset argv index

Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
This commit is contained in:
Julien Veyssier
2024-06-06 15:30:16 +02:00
parent edd59ee052
commit c39c0ab46d
+1 -1
View File
@@ -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