Closed docrud closed 5 years ago
Hi! Please try this code (instead of 301-306 lines in the combine() method) and let me know if it works without any warnings:
if ((@strstr('+-', (string) $item)) && (!empty($cur) && @strstr('+-', (string) $cur))
&& (!empty($array_ip1) && @strstr('+-', (string) $array_ip1))) {
if ($item === '-')
$new_array[key($new_array)] = ($cur == '+') ? '-' : '+';
} elseif ((@strstr('+-', (string) $item)) && (!empty($cur) && @strstr('*/^', (string) $cur))
&& (!empty($array_ip1) && @strstr('+-', (string) $array_ip1))) {
Hi!
It works without any warnings.
Thank your for your quickly reply.
Great, thanks!
Hi there,
I got a error like:
[2]strstr(): Empty needle[.../vendor/denissimon/formula-parser/FormulaParser.php:301
And I found this:
when foreach run,
$new_array
is empty, and(string) $cur
got a empty string.so strstr() give me a error.