Improved some syntax

http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_item_id=31216

Small syntax/code improvements