Merge pull request #10443 from EuskalMoneta/7.0

FIX Fix PHP warning "count(): Parameter must be an array..."
This commit is contained in:
Laurent Destailleur 2019-01-30 15:48:31 +01:00 committed by GitHub
commit 8d9b92698d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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)
{