Fatal error: Call to a member function hasPhoto() on a non-object in /apps/library/Smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code on line 56