- wprintf("<option %s value=\"%d\">%s</option>\n",
- ((i == recur.freq) ? "selected" : ""),
- i,
- frequency_units[i]
- );
+
+ /* We only want to offer daily, weekly, monthly, or yearly, which are
+ * options 3 through 6, but if one of the others hapens to be selected,
+ * we will grudgingly add it to the list of options.
+ */
+ if ( (i == recur.freq) || ((i>=3) && (i<=6)) ) {
+ wprintf("<option %s value=\"%d\">%s</option>\n",
+ ((i == recur.freq) ? "selected" : ""),
+ i,
+ frequency_units[i]
+ );
+ }