diff options
author | Lukas Reschke <lukas@statuscode.ch> | 2012-10-16 00:45:56 +0200 |
---|---|---|
committer | Lukas Reschke <lukas@statuscode.ch> | 2012-10-16 00:47:38 +0200 |
commit | 77e18b01ba19d8573b3d5360d492e2f0b5d1d391 (patch) | |
tree | f59a6436b721c6ac8018a4861dd638b842d51913 | |
parent | c404148f9a1c33c1b8966653f4bc37fe2a44a285 (diff) | |
download | nextcloud-server-77e18b01ba19d8573b3d5360d492e2f0b5d1d391.tar.gz nextcloud-server-77e18b01ba19d8573b3d5360d492e2f0b5d1d391.zip |
Move the ( to the right position
-rw-r--r-- | lib/json.php | 4 |
1 files 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; |