summaryrefslogtreecommitdiff
path: root/modules/user/helpers
diff options
context:
space:
mode:
Diffstat (limited to 'modules/user/helpers')
-rw-r--r--modules/user/helpers/user.php12
1 files changed, 1 insertions, 11 deletions
diff --git a/modules/user/helpers/user.php b/modules/user/helpers/user.php
index dbb9b613..93f07629 100644
--- a/modules/user/helpers/user.php
+++ b/modules/user/helpers/user.php
@@ -113,17 +113,7 @@ class user_Core {
* Make sure that we have a session and group_ids cached in the session.
*/
static function load_user() {
- // This is one of the first session operations that we'll do, so it may fail if there's no
- // install yet. Try to handle this situation gracefully expecting that the scaffolding will
- // Do The Right Thing.
- //
- // @todo get rid of this extra error checking when we have an installer.
- try {
- $session = Session::instance();
- } catch (Exception $e) {
- return;
- }
-
+ $session = Session::instance();
if (!($user = $session->get("user"))) {
$session->set("user", $user = user::guest());
}