Fixed php strict warning issue