Commit bfe31a79 authored by Eileen's avatar Eileen
Browse files

remove require_once, &

parent cdb5cf70
......@@ -58,8 +58,7 @@ class CRM_CiviDiscount_BAO_Item extends CRM_CiviDiscount_DAO_Item {
* @access public
* @static
*/
static function &add(&$params) {
require_once 'CRM/Utils/Date.php';
static function add(&$params) {
$item = new CRM_CiviDiscount_DAO_Item();
$item->code = $params['code'];
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment