Update User.php for PHP 8

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

View file

@ -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;