summaryrefslogtreecommitdiff
path: root/includes/loggedin.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/loggedin.php')
-rw-r--r--includes/loggedin.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/loggedin.php b/includes/loggedin.php
index 0070ede..97ec2fa 100644
--- a/includes/loggedin.php
+++ b/includes/loggedin.php
@@ -20,7 +20,7 @@
require_once("../includes/lib/l10n.php");
include_once("../includes/mysql.php");
- if(!is_array($_SESSION['profile'])) {
+ if(!isset($_SESSION['profile']) || !is_array($_SESSION['profile'])) {
$_SESSION['profile'] = array( 'id' => 0, 'loggedin' => 0 );
}
if(!isset($_SESSION['profile']['id']) || !isset($_SESSION['profile']['loggedin'])) {