summaryrefslogtreecommitdiff
path: root/classes/handler
diff options
context:
space:
mode:
Diffstat (limited to 'classes/handler')
-rw-r--r--classes/handler/protected.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/classes/handler/protected.php b/classes/handler/protected.php
index 765b17480..8e9e5ca1d 100644
--- a/classes/handler/protected.php
+++ b/classes/handler/protected.php
@@ -2,6 +2,6 @@
class Handler_Protected extends Handler {
function before($method) {
- return parent::before($method) && $_SESSION['uid'];
+ return parent::before($method) && !empty($_SESSION['uid']);
}
}