A PHP Error was encountered

Severity: Notice

Message: Only variable references should be returned by reference

Filename: core/Common.php

Line Number: 257

load->database(); $this->load->helper('string'); } function add_order($dom,$address_data,$order_data){ if(!empty($dom)){ if(!empty($address_data) && is_array($address_data)){ foreach($address_data as $a_key=>$adr){ $athis->$a_key = $adr; } } if(!empty($order_data) && is_array($order_data)){ foreach($order_data as $o_key=>$ord){ $athis->$o_key = $ord; } if(!empty($athis)){ $athis->domain = $dom; $athis->editdate = time(); $athis->editor = 'site'; $check_exist = $this->load_order($order_data['order_key']); if(!$check_exist){ if($this->db->insert('order_data',$athis)){return true;} }else{ if($this->db->update('order_data',$athis,array('order_key'=>$order_data['order_key']))){return true;} } }else{return false;} }else{return false;} } } function load_order($order_key){ if(!empty($order_key)){ $this->db->where('order_key',$order_key); $result = $this->db->get('order_data'); if($result->num_rows() > 0 ){ $retvar = $result->result(); return $retvar[0]; }else{return false;} }else{return false;} } function mkOrderNr(){ $this->db->where_not_in('factuur_nr','nvt'); $result = $this->db->get('order_data'); return $result->num_rows()+101; } function get_gbkey($order_key){ if(!empty($order_key)){ $this->db->where('order_key',$order_key); $result = $this->db->get('order_data'); if($result->num_rows() > 0 ){ $ret = $result->result(); return $ret[0]->gb_key; }else{return false;} }else{return false;} } function get_email($gb_key){ if(!empty($gb_key)){ $this->db->where('gb_key',$gb_key); $this->db->limit(1); $result = $this->db->get('users'); if($result->num_rows() > 0 ){ $ret = $result->result(); return $ret[0]->email; }else{return false;} }else{return false;} } function finish_order($order_key,$orderVars){ if(!empty($orderVars['order_status'])){$ethis->order_status = $orderVars['order_status'];} if(!empty($orderVars['payment_status'])){$ethis->payment_status= $orderVars['payment_status'];} if(!empty($orderVars['payment_key'])){$ethis->payment_key= $orderVars['payment_key'];} if(!empty($orderVars['payment_date'])){$ethis->payment_date= $orderVars['payment_date'];} if(!empty($orderVars['factuur_nr'])){$ethis->factuur_nr= $orderVars['factuur_nr'];} $this->db->where('order_key',$order_key); if($this->db->update('order_data',$ethis)){ return true; }else{return false;} } function get_order_item_data($dom,$order_key=""){ $CI = & get_instance(); if(!empty($order_key)){ $this->db->where('order_key',$order_key); $this->db->where('domain',$dom); $result = $this->db->get('order_data'); if($result->num_rows() > 0 ){ $retvars = $result->result(); return $retvars[0]; }else{ return false; } }else{return false;} } function check_used_coupons($dom,$coupon_code="",$coupon_key=""){ $CI = & get_instance(); if(!empty($order_key)){ $this->db->where('coupon_code',$coupon_code); $this->db->where('coupon_key',$coupon_key); $this->db->where('domain',$dom); $result = $this->db->get('order_data'); if($result->num_rows() > 0 ){ $retvars = $result->result(); return $retvars[0]; }else{ return false; } }else{return false;} } function get_order_items($dom){ $CI = & get_instance(); $this->db->where('domain',$dom); $this->db->where('order_status','order_received'); $result = $this->db->get('order_data'); if($result->num_rows() > 0 ){ return $result->result(); }else{ return false; } } function adm_all_orders($status="",$orderby="editdate",$direction="DESC"){ $this->db->where('domain',$dom); if(!empty($status)){$this->db->where('order_status',$status);} if(!empty($orderby)){$this->db->order_by($orderby,$direction);} $result = $this->db->get('order_data'); if($result->num_rows() > 0 ){ return $result->result(); }else{ return false; } } } ?>