mirror of https://github.com/MISP/MISP
fix: Possible fix to the newsread = null issue
parent
6eba658d4a
commit
14d5b0444d
|
@ -245,6 +245,9 @@ class User extends AppModel {
|
|||
if (!isset($this->data['User']['certif_public']) || empty($this->data['User']['certif_public'])) $this->data['User']['certif_public'] = '';
|
||||
if (!isset($this->data['User']['authkey']) || empty($this->data['User']['authkey'])) $this->data['User']['authkey'] = $this->generateAuthKey();
|
||||
if (!isset($this->data['User']['nids_sid']) || empty($this->data['User']['nids_sid'])) $this->data['User']['nids_sid'] = mt_rand(1000000, 9999999);
|
||||
if (isset($this->data['User']['newsread']) && $this->data['User']['newsread'] === null) {
|
||||
$this->data['User']['newsread'] = 0;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue