1
0
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:
Ryan Cramer
2024-03-28 09:01:54 -04:00
parent 0852242866
commit 21949387b4
4 changed files with 9 additions and 5 deletions

View File

@@ -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";