forked from Wavyzz/dolibarr
fix API check sql filters
Correct PHP7 warning about wrong usage of count() function
This commit is contained in:
@@ -254,7 +254,7 @@ class DolibarrApi
|
|||||||
//$tmp=preg_replace_all('/'.$regexstring.'/', '', $sqlfilters);
|
//$tmp=preg_replace_all('/'.$regexstring.'/', '', $sqlfilters);
|
||||||
$tmp=$sqlfilters;
|
$tmp=$sqlfilters;
|
||||||
$ok=0;
|
$ok=0;
|
||||||
$i=0; $nb=count($tmp);
|
$i=0; $nb=strlen($tmp);
|
||||||
$counter=0;
|
$counter=0;
|
||||||
while ($i < $nb)
|
while ($i < $nb)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user