Elgg/Elgg — pull request #167 by jdalsem (2012-02-23 12:58:25+00:00)
Title: Better logic in function

First check if !loggedin before retrieving all kinds of metadata. Saves a lot of queries