Skip to content

Commit

Permalink
Add $argv initialization (fix for #4592)
Browse files Browse the repository at this point in the history
  • Loading branch information
nilsteampassnet committed Feb 25, 2025
1 parent 2629ab8 commit 92abbb9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions scripts/background_tasks___items_handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,11 @@
// log end
doLog('end', '', (isset($SETTINGS['enable_tasks_log']) === true ? (int) $SETTINGS['enable_tasks_log'] : 0), $logID);

// Check if $argv is defined and is an array
if (!isset($argv) || !is_array($argv)) {
$argv = [];
}

// The main process run new iteratives process for each subtask
if (!in_array('--child', $argv)) {
// Save subtasks start time
Expand Down

0 comments on commit 92abbb9

Please sign in to comment.