MIAMI (CBSMiami/AP) — Just before he was to go before an administrative hearing on Wednesday, former gubernatorial candidate Andrew Gillum agreed to pay a $5,000 fine to settle an ethics complaint that he violated civil law by accepting a gift from a lobbyist.

His attorney Barry Richard said afterward that the one count involved a free boat ride in New York.

READ MORE: Miami-Dade Police Confirm Shooting Death Of Rapper Wavy Navy Pooh Near Zoo Miami

After Gillum agreed to the fine, the state Ethics Commission dropped four additional counts of violations.

READ MORE: Tornado Watch In Effect: Severe Weather Sunday In South Florida

The result ends a lengthy ethics investigation that factored heavily in Gillum’s unsuccessful campaign for governor last year, when Republican then-candidate Ron DeSantis repeatedly criticized Gillum over the allegations. Gillum denied them at the time.

Gillum said in a statement Wednesday he “never knowingly violated any ethics laws. Once I was made aware of one issue, I took responsibility.”

MORE NEWS: Teen Shot In NW Miami-Dade After Fleeing From Vehicle Officers Tried Stopping

(© Copyright 2019 CBS Broadcasting Inc. All Rights Reserved. The Associated Press contributed to this report.)