Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/opencart/opencart
Browse files Browse the repository at this point in the history
  • Loading branch information
danielkerr committed Aug 26, 2015
2 parents e06b222 + f64120d commit eaeba89
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
10 changes: 8 additions & 2 deletions upload/admin/model/customer/customer.php
Expand Up @@ -506,9 +506,15 @@ public function getTotalCustomerRewardsByOrderId($order_id) {
return $query->row['total'];
}

public function getIps($customer_id) {
$query = $this->db->query("SELECT * FROM " . DB_PREFIX . "customer_ip WHERE customer_id = '" . (int)$customer_id . "'");
public function getIps($customer_id, $start = 0, $limit = 10) {
if ($start < 0) {
$start = 0;
}
if ($limit < 1) {
$limit = 10;
}

$query = $this->db->query("SELECT * FROM " . DB_PREFIX . "customer_ip WHERE customer_id = '" . (int)$customer_id . "' ORDER BY date_added DESC LIMIT " . (int)$start . "," . (int)$limit);
return $query->rows;
}

Expand Down
2 changes: 1 addition & 1 deletion upload/catalog/controller/information/contact.php
Expand Up @@ -76,7 +76,7 @@ public function index() {

$data['button_submit'] = $this->language->get('button_submit');

$data['action'] = $this->url->link('information/contact');
$data['action'] = $this->url->link('information/contact', '', 'SSL');

$this->load->model('tool/image');

Expand Down

0 comments on commit eaeba89

Please sign in to comment.