Update User.php for PHP 8
This commit is contained in:
parent
f8be10fe06
commit
e0ce98abb4
1 changed files with 3 additions and 0 deletions
|
@ -85,6 +85,9 @@ class SemanticScuttle_Model_User
|
||||||
$user = $us->getUser($this->id);
|
$user = $us->getUser($this->id);
|
||||||
$this->privateKey = $user['privateKey'];
|
$this->privateKey = $user['privateKey'];
|
||||||
}
|
}
|
||||||
|
//2023-12-20 add line to avoid 'Deprecated' warning
|
||||||
|
if (is_null($this->privateKey)) return null;
|
||||||
|
|
||||||
if ($sanitized == true) {
|
if ($sanitized == true) {
|
||||||
return substr($this->privateKey, -32);
|
return substr($this->privateKey, -32);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue