In margin cases, when batch success happens immediately in a batch supposed to be progressive, _batch_process() uses $finished as part of the computation of $current although it was never defined since the while(=current_set['success']) loop was never entered.

This variable should be initialized outside that loop.

Comments

fgm’s picture

Status: Active » Needs review
StatusFileSize
new837 bytes

Suggested patch.

Status: Needs review » Closed (outdated)

Automatically closed because Drupal 7 security and bugfix support has ended as of 5 January 2025. If the issue verifiably applies to later versions, please reopen with details and update the version.