mirror of
https://github.com/processwire/processwire.git
synced 2025-08-11 17:24:46 +02:00
Various minor updates
This commit is contained in:
@@ -381,7 +381,7 @@ class Session extends Wire implements \IteratorAggregate {
|
||||
// if valid, update last request time
|
||||
$this->set('_user', 'ts', time());
|
||||
|
||||
} else if($reason && $userID && $userID != $this->wire('config')->guestUserPageID) {
|
||||
} else if($reason && $userID && $userID != $this->config->guestUserPageID) {
|
||||
// otherwise log the invalid session
|
||||
$user = $this->wire()->users->get((int) $userID);
|
||||
if($user && $user->id) $reason = "User '$user->name' - $reason";
|
||||
|
Reference in New Issue
Block a user