fixed a typo in the JControllerLegacy::display() function and finished
removing the nested conditionals from it.