(a) Any dog that has been confiscated under the provisions of this section shall be returned to its owner upon the owner's compliance with the provisions of this division and upon the payment of reasonable confiscation costs. (b) When a dangerous dog or potentially dangerous dog is confiscated by the dog control officer or by a law enforcement officer or another person authorized by the dog control officer and placed in quarantine for the proper length of time as determined by the county board of health, the owner of the dangerous or potentially dangerous dog shall be required to pay all costs incurred by the county as a result of quarantining the dog.