Si è dimenticato fi mettere un if-else in cui usare $today, che infatti lì come è adesso non servirebbe a niente.