If the birthday feature was disabled, the user could not change their flag if they wanted too.  Moving the $template->assign_vars() call below the birthday check re-enables this feature.