Update category.php

getCategories() should have an optional data parameter instead of a required one
Merge pull request #1959 from tomkoo/patch-1

Update category.php