Fixed User group promotion job doesn't return as complete if no promotions are found

TickTackk

Well-known member
Affected version
XF 2.0.x
File: src\XF\Job\UserGroupPromotion.php
Find:
PHP:
        if (!$promotions)
        {
            $this->complete();
        }
Replace with:
PHP:
        if (!$promotions)
        {
            return $this->complete();
        }
 
Last edited:
Thank you for reporting this issue. The issue is now resolved and we are aiming to include that in the next XF release (2.0.11).

Change log:
Return 'complete' response from UserGroupPromotion job if no active promotions are found.
 
Back
Top Bottom