Fixed php warning.