From 91d4b23efe6446240d89425060ca4483a1eecf77 Mon Sep 17 00:00:00 2001 From: Lukas Reschke Date: Tue, 16 Oct 2012 00:43:05 +0200 Subject: [PATCH] Fix PHP notice --- lib/json.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/json.php b/lib/json.php index 0a62dc8a65..e4c34e21f6 100644 --- a/lib/json.php +++ b/lib/json.php @@ -84,7 +84,7 @@ class OC_JSON{ */ public static function verifyUser() { // Check if the user verified his password in the last 15 minutes - if($_SESSION['verifiedLogin'] < time() OR !isset($_SESSION['verifiedLogin'])) { + if(!isset($_SESSION['verifiedLogin'] OR $_SESSION['verifiedLogin'] < time())) { $l = OC_L10N::get('lib'); self::error(array( 'data' => array( 'message' => $l->t('Authentication error') ))); exit(); @@ -96,7 +96,7 @@ class OC_JSON{ */ public static function isUserVerified() { // Check if the user verified his password in the last 15 minutes - if($_SESSION['verifiedLogin'] < time() OR !isset($_SESSION['verifiedLogin'])) { + if(!isset($_SESSION['verifiedLogin'] OR $_SESSION['verifiedLogin'] < time())) { return false; } return true;