summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/class/user.class.php12
1 files changed, 11 insertions, 1 deletions
diff --git a/app/class/user.class.php b/app/class/user.class.php
index 81fc29f..6f05570 100644
--- a/app/class/user.class.php
+++ b/app/class/user.class.php
@@ -146,7 +146,17 @@ class user extends agent
return NULL;
}
- return new user($_SESSION['userguid']);
+ try
+ {
+ return new user($_SESSION['userguid']);
+ }
+ catch (Exception $e)
+ {
+ /* invalid user */
+ self::setCurrent();
+ location("/");
+ return NULL;
+ }
}
/*