Update system/cms/modules/blog/controllers/blog.php

$category is an object and lex doesnt like it