Help to fight errors ErrorBadValueForParamNotAString
This commit is contained in:
parent
c2bb0431f0
commit
defbd26f95
@ -546,7 +546,10 @@ class Translate
|
|||||||
{
|
{
|
||||||
global $conf, $db;
|
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;
|
$newstr = $key;
|
||||||
if (preg_match('/^Civility([0-9A-Z]+)$/i', $key, $reg))
|
if (preg_match('/^Civility([0-9A-Z]+)$/i', $key, $reg))
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user