Update User.php for PHP 8
This commit is contained in:
parent
60fd8f4098
commit
f8be10fe06
1 changed files with 2 additions and 0 deletions
|
@ -301,6 +301,8 @@ class SemanticScuttle_Service_User extends SemanticScuttle_DbService
|
||||||
*/
|
*/
|
||||||
public function isPrivateKeyValid($privateKey)
|
public function isPrivateKeyValid($privateKey)
|
||||||
{
|
{
|
||||||
|
//2023-12-20 add line for PHP 8 Deprecated warning
|
||||||
|
if (is_null($privateKey)) return false;
|
||||||
// check length of private key
|
// check length of private key
|
||||||
if (strlen($privateKey) == 32) {
|
if (strlen($privateKey) == 32) {
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in a new issue