Fix issue with new null value for empty registration date when tested through SSO - refs BT#9704

1.10.x
Yannick Warnier 10 years ago
parent a62790d8de
commit adbadd0cb9
  1. 2
      main/auth/sso/sso.Drupal.class.php
  2. 3
      main/auth/sso/sso.class.php

@ -118,7 +118,7 @@ class ssoDrupal
//Check if the account is active (not locked)
if ($uData['active']=='1') {
// check if the expiration date has not been reached
if ($uData['expiration_date'] > date('Y-m-d H:i:s') OR $uData['expiration_date']=='0000-00-00 00:00:00') {
if (empty($uData['expiration_date']) OR $uData['expiration_date'] > date('Y-m-d H:i:s') OR $uData['expiration_date']=='0000-00-00 00:00:00') {
//If Multiple URL is enabled
if (api_get_multiple_access_url()) {

@ -123,7 +123,8 @@ class sso {
//Check if the account is active (not locked)
if ($uData['active']=='1') {
// check if the expiration date has not been reached
if ($uData['expiration_date'] > date('Y-m-d H:i:s')
if (empty($uData['expiration_date'])
or $uData['expiration_date'] > date('Y-m-d H:i:s')
or $uData['expiration_date']=='0000-00-00 00:00:00') {
//If Multiple URL is enabled

Loading…
Cancel
Save