summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--src/SemanticScuttle/Service/User.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/SemanticScuttle/Service/User.php b/src/SemanticScuttle/Service/User.php
index 434e6b7..917c7c9 100644
--- a/src/SemanticScuttle/Service/User.php
+++ b/src/SemanticScuttle/Service/User.php
@@ -301,6 +301,8 @@ class SemanticScuttle_Service_User extends SemanticScuttle_DbService
*/
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
if (strlen($privateKey) == 32) {
return true;