Upgrade to 8.1 $resCount error

I upgraded a site to 8.1 and only one custom plugin has an error with

array_push($resultsArr, $tempArr); $resCount++; (this line shows the error)

Is there another way to write this line to resolve the issue? I’ve tried Googling for this issue, not seeing anything to resolve this.

Before the start of the looping this code is doing, you need to define and initialize $resCount to zero -

$resCount = 0;

Thank you, I will give this a try.

Sponsor our Newsletter | Privacy Policy | Terms of Service