Debug v17

This commit is contained in:
Laurent Destailleur 2023-01-03 11:32:33 +01:00
parent 37ce175d53
commit 9f02bd2350

View File

@ -1353,10 +1353,11 @@ class User extends CommonObject
$error = 0; $error = 0;
// Check parameters // Check parameters
if (isset($this->statut) && $this->statut == $status) { if (isset($this->statut)) {
return 0; if ($this->statut == $status) {
} return 0;
if (isset($this->status) && $this->status == $status) { }
} elseif (isset($this->status) && $this->status == $status) {
return 0; return 0;
} }
@ -3259,7 +3260,8 @@ class User extends CommonObject
$this->iplastlogin = '127.0.0.1'; $this->iplastlogin = '127.0.0.1';
$this->datepreviouslogin = $now; $this->datepreviouslogin = $now;
$this->ippreviouslogin = '127.0.0.1'; $this->ippreviouslogin = '127.0.0.1';
$this->statut = 1; $this->statut = 1; // deprecated
$this->status = 1;
$this->entity = 1; $this->entity = 1;
return 1; return 1;