Set subscriber to null instead of false
[MAILPOET-2950]
This commit is contained in:
committed by
Veljko V
parent
419a50e10a
commit
f5b836e898
@@ -17,7 +17,7 @@ class SubscriberSegment extends Model {
|
||||
}
|
||||
|
||||
public static function unsubscribeFromSegments($subscriber, $segmentIds = []) {
|
||||
if ($subscriber === false) return false;
|
||||
if (!$subscriber) return false;
|
||||
|
||||
// Reset confirmation emails count, so user can resubscribe
|
||||
$subscriber->countConfirmations = 0;
|
||||
|
Reference in New Issue
Block a user