Skip to content
Snippets Groups Projects
Commit 77e18b01 authored by Lukas Reschke's avatar Lukas Reschke
Browse files

Move the ( to the right position

parent c404148f
Branches
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment