diff options
Diffstat (limited to 'src/SemanticScuttle/Model')
-rw-r--r-- | src/SemanticScuttle/Model/User.php | 3 |
1 files changed, 3 insertions, 0 deletions
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 { |