- /* TODO: remove */
- if (!isset($contribution['duree_mois_cotis'])
- || $contribution['duree_mois_cotis'] == ''
- ) {
- // On error restore entered value or default to display the form again
- if (isset($_POST['duree_mois_cotis'])
- && $_POST['duree_mois_cotis'] != ''
- ) {
- $contribution['duree_mois_cotis'] = $_POST['duree_mois_cotis'];
- } else {
- $contribution['duree_mois_cotis'] = $this->preferences->pref_membership_ext;
- }
- }
-