Skip to content

Commit 487dd45

Browse files
committed
Fix call to getURI() on null active user
1 parent 8277d5f commit 487dd45

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Controllers/User/ResetPassword.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public function invoke(?array $args): bool
4545

4646
if ($event->commit())
4747
{
48-
$embed = Logger::initDiscordEmbed($event, $this->model->active_user->getURI());
48+
$embed = Logger::initDiscordEmbed($event, $this->model->active_user ? $this->model->active_user->getURI() : null);
4949
Logger::logToDiscord($event, $embed);
5050
}
5151
}

0 commit comments

Comments
 (0)