Update functions.php

spotted by cris@deana.it - thanks for a great bugreport!