getScaledCredits($tikilib->get_user_id($user)); } else { $tiki_user_credits = 0; } $smarty->assign('tiki_user_credits', $tiki_user_credits); }