Help to fight errors ErrorBadValueForParamNotAString

This commit is contained in:
Laurent Destailleur 2020-08-03 12:33:22 +02:00
parent c2bb0431f0
commit defbd26f95

View File

@ -546,7 +546,10 @@ class Translate
{
global $conf, $db;
if (!is_string($key)) return 'ErrorBadValueForParamNotAString'; // Avoid multiple errors with code not using function correctly.
if (!is_string($key)) {
//xdebug_print_function_stack('ErrorBadValueForParamNotAString');
return 'ErrorBadValueForParamNotAString'; // Avoid multiple errors with code not using function correctly.
}
$newstr = $key;
if (preg_match('/^Civility([0-9A-Z]+)$/i', $key, $reg))