Merge pull request #111 from mmn/endsetiapiuser_is_not_always_a_user
EndSetApiUser is not always a User
This commit is contained in:
commit
edfb9ada95
|
@ -806,6 +806,9 @@ class QvitterPlugin extends Plugin {
|
|||
* @return boolean hook flag
|
||||
*/
|
||||
public function onEndSetApiUser($user) {
|
||||
if (!$user instanceof User) {
|
||||
return true;
|
||||
}
|
||||
|
||||
$user_id = $user->id;
|
||||
$notification = new QvitterNotification();
|
||||
|
|
Loading…
Reference in New Issue
Block a user