fixed small null error in php globabls