From 77e18b01ba19d8573b3d5360d492e2f0b5d1d391 Mon Sep 17 00:00:00 2001 From: Lukas Reschke Date: Tue, 16 Oct 2012 00:45:56 +0200 Subject: Move the ( to the right position --- lib/json.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/json.php b/lib/json.php index e4c34e21f69..b6acaae4c97 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(!isset($_SESSION['verifiedLogin'] OR $_SESSION['verifiedLogin'] < time())) { + 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(!isset($_SESSION['verifiedLogin'] OR $_SESSION['verifiedLogin'] < time())) { + if(!isset($_SESSION['verifiedLogin']) OR $_SESSION['verifiedLogin'] < time()) { return false; } return true; -- cgit v1.2.3