Fix PHP notice
This commit is contained in:
parent
1a187d1ca5
commit
91d4b23efe
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue