Added if statement around saving to config table

that is nothing is changed $updated is still false.