From f644a31f9bf814b4d92f70f6958de05233b88d38 Mon Sep 17 00:00:00 2001 From: Andrew McMillan Date: Sun, 27 Jun 2010 19:06:27 +1200 Subject: [PATCH] Avoid potential unassigned variable warning. --- inc/HTTPAuthSession.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/HTTPAuthSession.php b/inc/HTTPAuthSession.php index 6e8a998c..bcc770b0 100644 --- a/inc/HTTPAuthSession.php +++ b/inc/HTTPAuthSession.php @@ -250,7 +250,7 @@ class HTTPAuthSession { * @return boolean Whether or not the user has the specified role. */ function AllowedTo ( $whatever ) { - return ( $this->logged_in && isset($this->roles[$whatever]) && $this->roles[$whatever] ); + return ( isset($this->logged_in) && $this->logged_in && isset($this->roles[$whatever]) && $this->roles[$whatever] ); }