Skip to content

Commit

Permalink
Fixing PHP 5.4 E_STRICT errors in domains module model.
Browse files Browse the repository at this point in the history
  • Loading branch information
adamfairholm committed Sep 13, 2012
1 parent e6b0002 commit c401d40
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions system/cms/modules/domains/models/domain_m.php
Expand Up @@ -27,12 +27,12 @@ public function count_all()
return $this->db->query("SELECT id FROM core_domains WHERE site_id = ".$this->db->escape($this->_site_id))->num_rows();
}

public function insert($input = array())
public function insert($input = array(), $skip_validation = false)
{
return $this->db->query("INSERT INTO core_domains (type, domain, site_id) VALUES ('".$this->db->escape_str($input['type'])."', '".$this->db->escape_str($input['domain'])."', ".$this->db->escape($this->_site_id).")");
}

public function update($id, $input = array())
public function update($id, $input = array(), $skip_validation = false)
{
return $this->db->query("UPDATE core_domains SET type = '".$this->db->escape_str($input['type'])."', domain = '".$this->db->escape_str($input['domain'])."' WHERE id = ".$this->db->escape($id)." AND site_id = ".$this->db->escape($this->_site_id));
}
Expand Down

0 comments on commit c401d40

Please sign in to comment.