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'); }