From e4e07e120aa1a3f18584ebc743db793860db5d20 Mon Sep 17 00:00:00 2001 From: netkas Date: Mon, 6 Jan 2025 14:54:35 -0500 Subject: [PATCH] Minor correction for null-types --- .../Classes/StandardMethods/VerificationAnswerImageCaptcha.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Socialbox/Classes/StandardMethods/VerificationAnswerImageCaptcha.php b/src/Socialbox/Classes/StandardMethods/VerificationAnswerImageCaptcha.php index 37052f9..e0d627e 100644 --- a/src/Socialbox/Classes/StandardMethods/VerificationAnswerImageCaptcha.php +++ b/src/Socialbox/Classes/StandardMethods/VerificationAnswerImageCaptcha.php @@ -30,7 +30,7 @@ try { - if(CaptchaManager::getCaptcha($session->getPeerUuid())->isExpired()) + if(CaptchaManager::getCaptcha($session->getPeerUuid())?->isExpired()) { return $rpcRequest->produceError(StandardError::CAPTCHA_EXPIRED, 'The captcha has expired'); }