Quote:
Originally Posted by Dylanblitz
Sorry about that. The function didn't get moved over. I created it after I found out vb doesn't do well with cleaning non English language numbers.
In includes/garage_func_var.php at about line 700 you'll find
PHP Code:
function NotifyUsers($subject, $from_id, $to_id)
{
Before that put
PHP Code:
function CheckIfNumber($number)
{
$lang_number = preg_match
('/^[+-]?'.
'(((([0-9]+)|([0-9]{1,4}(,[0-9]{3,4})+)))?(\\.[0-9])?([0-9]*)|'.
'((([0-9]+)|([0-9]{1,4}(\\.[0-9]{3,4})+)))?(,[0-9])?([0-9]*))'.
'(e[0-9]+)?'.
'$/',
$number) == 1;
if ($lang_number != 1)
{
$number = 0;
}
return $number;
}
|
Is this fix still something that needs to be made to the latest version?
I got the same error using the latest version and then made this fix and it went away. Just want to check.
Thank you for this mod!