From a02fdd1f4d8b766a985fff5d393058e59af05a3c Mon Sep 17 00:00:00 2001 From: Nicolas Aupetit Date: Sat, 6 Oct 2018 13:44:10 +1100 Subject: [PATCH] fix API check sql filters Correct PHP7 warning about wrong usage of count() function --- htdocs/api/class/api.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/api/class/api.class.php b/htdocs/api/class/api.class.php index 6ddb4dae1b3..6d6ef4578cd 100644 --- a/htdocs/api/class/api.class.php +++ b/htdocs/api/class/api.class.php @@ -254,7 +254,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) {