FIX Fix PHP warning "count(): Parameter must be an array..."

This commit is contained in:
Xebax
2019-01-29 08:47:46 +01:00
parent 9d1a02b0d7
commit b24f5fda68

View File

@@ -251,7 +251,7 @@ class DolibarrApi
//$tmp=preg_replace_all('/'.$regexstring.'/', '', $sqlfilters);
$tmp=$sqlfilters;
$ok=0;
$i=0; $nb=count($tmp);
$i=0; $nb=strlen($tmp);
$counter=0;
while ($i < $nb)
{