From 86bf8866f0543c57ee89c1faa42e809669bf9511 Mon Sep 17 00:00:00 2001 From: jekkos Date: Tue, 31 Mar 2015 16:33:29 +0200 Subject: [PATCH] Do duplicated cookie check before echo'ing output in items (fix for #49) --- application/controllers/items.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/controllers/items.php b/application/controllers/items.php index dcdc1a8e5..57d414cf2 100644 --- a/application/controllers/items.php +++ b/application/controllers/items.php @@ -51,8 +51,8 @@ class Items extends Secure_area implements iData_controller $total_rows = $this->Item->get_found_rows($search,$stock_location,$low_inventory,$is_serialized,$no_description,$search_custom,$is_deleted); $links = $this->_initialize_pagination($this->Item, $lines_per_page, $limit_from, $total_rows, 'search'); $data_rows=get_items_manage_table_data_rows($items,$this); - echo json_encode(array('total_rows' => $total_rows, 'rows' => $data_rows, 'pagination' => $links)); $this->_remove_duplicate_cookies(); + echo json_encode(array('total_rows' => $total_rows, 'rows' => $data_rows, 'pagination' => $links)); } function pic_thumb($pic_id)