(a)
Whenever a candidate whose name appears upon the ballot at any election for an office other than a voter-nominated office dies after the 68th day before the election, the votes cast for the deceased candidate shall be counted in determining the results of the election for the office for which the decedent was a candidate. If the deceased candidate receives a majority of the votes cast for the office, he or she shall be considered elected and the office to which he or she was elected shall be vacant at the beginning of the term for which he or she was elected. The vacancy thus created shall be filled in the same manner as if the candidate had died subsequent to taking office for that term.
(b)
Whenever a candidate whose name appears on the ballot at any election for a voter-nominated office dies, the votes cast for the deceased candidate shall be counted in determining the results of the election for the office for which the decedent was a candidate. If the deceased candidate receives a majority of the votes cast for the office at the general election, he or she shall be considered elected and the office to which he or she was elected shall be vacant at the beginning of the term for which he or she was elected. The vacancy thus created shall be filled in the same manner as if the candidate had died subsequent to taking office for that term.