Move the ( to the right position

This commit is contained in:
Lukas Reschke 2012-10-16 00:45:56 +02:00
parent c404148f9a
commit 77e18b01ba
1 changed files with 2 additions and 2 deletions

View File

@ -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;