In the mobile version, for the lost password recovery I receive this message: A non-numeric value encountered in oc-includes/osclass/helpers/hUtils.php on line 115
It is part of the function osc_show_recaptcha
Line 115 of the file hUtils.php is:
if((time()-$time)<=1200) {
However, the password can be recovered. How can I fix this error or hide it?
Function in file hUtils.php:
function osc_show_recaptcha($section = '') {
if( osc_recaptcha_public_key() ) {
if(osc_recaptcha_version()=="2") {
switch($section) {
case('recover_password'):
Session::newInstance()->_set('recover_captcha_not_set',0);
$time = Session::newInstance()->_get('recover_time');
if((time()-$time)<=1200) {
echo _osc_recaptcha_get_html(osc_recaptcha_public_key(), substr(osc_language(), 0, 2))."<br />";
}
else{
Session::newInstance()->_set('recover_captcha_not_set',1);
}
break;
default:
echo _osc_recaptcha_get_html(osc_recaptcha_public_key(), substr(osc_language(), 0, 2))."<br />";
break;
}
} else {
require_once osc_lib_path() . 'recaptchalib.php';
switch($section) {
case('recover_password'):
$time = Session::newInstance()->_get('recover_time');
if((time()-$time)<=1200) {
echo recaptcha_get_html( osc_recaptcha_public_key(), null, osc_is_ssl() )."<br />";
}
break;
default:
echo recaptcha_get_html( osc_recaptcha_public_key(), null, osc_is_ssl() );
break;
}
}
}
}
Thanks