Fixed PHP strict standards issues