$variables was not being set, the sort function was expecting an array b...

...ut got null, therefore an exception was happening when opening the plugins page in the add-ons menu.