summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorGravatar buckaroo-labs2023-12-20 18:18:46 -0800
committerGravatar GitHub2023-12-20 18:18:46 -0800
commitf8be10fe06fc961e35ca167dabf5b15c4a3a0fcb (patch)
tree21801a5c3c6aeb1f51878d5755c8cbe51ef9488c
parent60fd8f4098bc0644ea83212696dd3c39c159175a (diff)
downloadscuttle-f8be10fe06fc961e35ca167dabf5b15c4a3a0fcb.tar.gz
scuttle-f8be10fe06fc961e35ca167dabf5b15c4a3a0fcb.zip
Update User.php for PHP 8
-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;