|
|
|
@ -35,7 +35,6 @@ class Information_model extends CI_Model {
|
|
|
|
|
$this->ic_url_is_id = false;
|
|
|
|
|
$this->ic_ht_area_type = false;
|
|
|
|
|
$this->ic_ht_area_id = false;
|
|
|
|
|
$this->ic_type = false;
|
|
|
|
|
$this->ic_id = false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -133,7 +132,7 @@ class Information_model extends CI_Model {
|
|
|
|
|
}
|
|
|
|
|
$this->init();
|
|
|
|
|
$this->topNum = 1;
|
|
|
|
|
$this->ic_url_is_id = " AND ic.ic_id = " . $this->HT->escape($ic_id);
|
|
|
|
|
$this->ic_url_is_id = " AND ic.ic_id = " . $this->HT->escape($ic_id);
|
|
|
|
|
return $this->GetList();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -200,7 +199,7 @@ class Information_model extends CI_Model {
|
|
|
|
|
$this->orderBy ? $sql.=$this->orderBy : false;
|
|
|
|
|
|
|
|
|
|
$query = $this->HT->query($sql, array($site_code ? $site_code : $this->config->item('site_code')));
|
|
|
|
|
//print_r($this->HT->queries);
|
|
|
|
|
//print_r($this->HT->queries);die();
|
|
|
|
|
if ($this->topNum === 1) {
|
|
|
|
|
if ($query->num_rows() > 0) {
|
|
|
|
|
$row = $query->row();
|
|
|
|
|