PrestaShop/PrestaShop — pull request #1187 by studiokiwik (2013-12-27 15:23:06+00:00)
Title: [-] MO : fix statslive empty result when using maintenance ips ending with a comma

When adding an IP with the button "add my ip to maintenance ips", it adds a comma in this format : "127.0.0.1,"

But when statslive reads this value, it creates a request like this : [...] NOT IN (2130706433,) [...] which obvisouly returns FALSE because there is a syntax error.

Using "array_filter" after the "trim" will fix this issue by removing "empty" ips. Making live stats working again !