Minor correction for null-types

This commit is contained in:
netkas 2025-01-06 14:54:35 -05:00
parent 65c2254b0c
commit e4e07e120a

View file

@ -30,7 +30,7 @@
try try
{ {
if(CaptchaManager::getCaptcha($session->getPeerUuid())->isExpired()) if(CaptchaManager::getCaptcha($session->getPeerUuid())?->isExpired())
{ {
return $rpcRequest->produceError(StandardError::CAPTCHA_EXPIRED, 'The captcha has expired'); return $rpcRequest->produceError(StandardError::CAPTCHA_EXPIRED, 'The captcha has expired');
} }