bug 1176: Fix some syntax errors
authorBenny Baumann <BenBE@geshi.org>
Wed, 26 Jun 2013 20:11:43 +0000 (22:11 +0200)
committerBenny Baumann <BenBE@geshi.org>
Wed, 26 Jun 2013 20:11:43 +0000 (22:11 +0200)
includes/loggedin.php

index 6b37119..0070ede 100644 (file)
        require_once("../includes/lib/l10n.php");
        include_once("../includes/mysql.php");
 
-       if(!is_array($_SESSION['profile']) {
+       if(!is_array($_SESSION['profile'])) {
                $_SESSION['profile'] = array( 'id' => 0, 'loggedin' => 0 );
        }
-       if(!isset($_SESSION['profile']['id'] || !isset($_SESSION['profile']['loggedin']) {
+       if(!isset($_SESSION['profile']['id']) || !isset($_SESSION['profile']['loggedin'])) {
                $_SESSION['profile']['id'] = 0;
                $_SESSION['profile']['loggedin'] = 0;
        }