diff --git a/core/util.php b/core/util.php index d2150d27..9c695e7d 100644 --- a/core/util.php +++ b/core/util.php @@ -673,7 +673,7 @@ function _get_user(): User } } } - if ($page->get_cookie("user") && $page->get_cookie("session")) { + if (is_null($my_user) && $page->get_cookie("user") && $page->get_cookie("session")) { $my_user = User::by_session($page->get_cookie("user"), $page->get_cookie("session")); } if (is_null($my_user)) {