[#32154] Fix for PHP error in client view

http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_item_id=32154&start=0

To replace #2119