Elgg/Elgg — pull request #484 by lianglee (2013-01-02 17:11:08+00:00)
Title: if a $var['entity'] is not set , redirect user to referred page, to avoid Fatal error: Call to a member function getIconUrl() on a non-object

if a $var['entity'] is not set , redirect user to referred page