Commit edb987c8 authored by Zachary Doll's avatar Zachary Doll

get rid of return

parent fc610b0a
......@@ -123,11 +123,10 @@ class YagaHooks implements Gdn_IPlugin {
* @param UserInfoModule $Sender
*/
public function UserInfoModule_OnBasicInfo_Handler($Sender) {
if(!C('Yaga.Badges.Enabled')) {
return;
if(C('Yaga.Badges.Enabled')) {
echo '<dd class="Badges">' . $Sender->User->CountBadges . '</dd>';
echo '<dt class="Badges">' . T('Yaga.Badges', 'Badges') . '</dt> ';
}
echo '<dt class="Badges">' . T('Yaga.Badges', 'Badges') . '</dt> ';
echo '<dd class="Badges">' . $Sender->User->CountBadges . '</dd>';
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment