Fixed php STRICT errors