From e0ce98abb43505357ca1936b68c9eb7b92bbf559 Mon Sep 17 00:00:00 2001 From: buckaroo-labs <46908086+buckaroo-labs@users.noreply.github.com> Date: Wed, 20 Dec 2023 18:26:44 -0800 Subject: [PATCH] Update User.php for PHP 8 --- src/SemanticScuttle/Model/User.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/SemanticScuttle/Model/User.php b/src/SemanticScuttle/Model/User.php index e5d29af..3fbbaa0 100644 --- a/src/SemanticScuttle/Model/User.php +++ b/src/SemanticScuttle/Model/User.php @@ -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 {