Only run EndSubscribe when it is really a sub
This commit is contained in:
parent
10cbf8c45e
commit
848d513706
@ -124,7 +124,9 @@ class Subscription extends Managed_DataObject
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Event::handle('EndSubscribe', array($subscriber, $other));
|
if ($sub instanceof Subscription) { // i.e. not SubscriptionQueue
|
||||||
|
Event::handle('EndSubscribe', array($subscriber, $other));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return $sub;
|
return $sub;
|
||||||
|
Loading…
Reference in New Issue
Block a user