fixed php warning. props gyfchong for pointing it out.