summaryrefslogtreecommitdiff
path: root/includes/loggedin.php
diff options
context:
space:
mode:
authorBenny Baumann <BenBE@geshi.org>2013-06-26 22:28:21 +0200
committerBenny Baumann <BenBE@geshi.org>2013-06-26 22:28:21 +0200
commit0eceb4b1145546f32ddfd9aeee63952e762b59af (patch)
tree7a485cbf9ce88be1e6c8f9edf5eaeaf622c84670 /includes/loggedin.php
parent11309775f21c2272d5cfa03789d5381928b398c8 (diff)
downloadcacert-devel-0eceb4b1145546f32ddfd9aeee63952e762b59af.tar.gz
cacert-devel-0eceb4b1145546f32ddfd9aeee63952e762b59af.tar.xz
cacert-devel-0eceb4b1145546f32ddfd9aeee63952e762b59af.zip
bug 1176: Check for the profile being set prior to checking it to be an array.
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'])) {