Fixed some widget PHP warnings