fix edge case in update.php

could lead to only a white page
update
beautify
beautify
remove comment
Fixed incorrect strings