Skip to content

Commit b31c580

Browse files
authored
Merge pull request #73 from iMattPro/fixes
Fix PHP 8 Issues
2 parents f4de413 + eb5c860 commit b31c580

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

event/listener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ public function log_failed_login_attempts($event)
195195
return;
196196
}
197197

198-
if ($this->in_watch_group($event['result']['user_row']['user_id']))
198+
if (isset($event['result']['user_row']) && $this->in_watch_group($event['result']['user_row']['user_id']))
199199
{
200200
$this->log->add('user', $event['result']['user_row']['user_id'], $this->user->ip, 'LOG_TEAM_AUTH_FAIL', time(), array('reportee_id' => $event['result']['user_row']['user_id']));
201201
}

0 commit comments

Comments
 (0)