Update User.php for PHP 8

This commit is contained in:
buckaroo-labs 2023-12-20 18:26:44 -08:00 committed by GitHub
parent f8be10fe06
commit e0ce98abb4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -85,6 +85,9 @@ class SemanticScuttle_Model_User
$user = $us->getUser($this->id);
$this->privateKey = $user['privateKey'];
}
//2023-12-20 add line to avoid 'Deprecated' warning
if (is_null($this->privateKey)) return null;
if ($sanitized == true) {
return substr($this->privateKey, -32);
} else {