Fixed PHP strict warnings.