diff options
author | Lukas Reschke <lukas@statuscode.ch> | 2012-10-16 00:43:05 +0200 |
---|---|---|
committer | Lukas Reschke <lukas@statuscode.ch> | 2012-10-16 00:47:38 +0200 |
commit | 91d4b23efe6446240d89425060ca4483a1eecf77 (patch) | |
tree | 447e3d651b7d30ac151cbaf955c32dae987c3c23 /lib/json.php | |
parent | 1a187d1ca563607a537b837226eca42d51545c4a (diff) | |
download | nextcloud-server-91d4b23efe6446240d89425060ca4483a1eecf77.tar.gz nextcloud-server-91d4b23efe6446240d89425060ca4483a1eecf77.zip |
Fix PHP notice
Diffstat (limited to 'lib/json.php')
-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 0a62dc8a65b..e4c34e21f69 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; |