Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Fix undefined offset errors in functions.inc.php. #5
When accessing the dashboard on my server, I noticed that many times I was getting the following errors on my server log:
I noticed you just used the count() function to get the values for the loop, making the array go out of bounds, as the array counts from 0 to total-1 and the count() function was returning the total.
The propsed fix uses count()-1 instead of count() and fixed the problem in my environment.