Warning[2]: count(): Parameter must be an array or an object that implements Countable

/application/code/front/model/catalog/category.php [ 117 ]

112                 ->execute()
113                 ->as_array();
114             $temp[]=$query_row2;
115             $temp[0][]=$cate_id;
116 
117             if(count($query_row2>0)){
118                 foreach($query_row2 as $qr){
119                     $temp[0][]=$qr;
120                 } }
121 
122             $query_row3 = DB::select('category.category_id')

Warning[2]: count(): Parameter must be an array or an object that implements Countable

/application/code/front/model/catalog/category.php [ 134 ]

129                 ->where('category.status', '=', 1)
130                 ->and_where('category.parent_id', 'IN', $temp[0])
131                 ->execute()
132                 ->as_array();
133 
134             if(count($query_row3>0)){
135                 foreach($query_row3 as $qr1){
136                     $temp[0][]=$qr1;
137                 } }
138 
139             $query_row = DB::select(DB::expr('sale_price AS sale_price'))

Warning[2]: count(): Parameter must be an array or an object that implements Countable

/application/code/front/controller/catalog/layer.php [ 209 ]

204 			
205 			$this->data['has_child'] = $has_child;
206 
207             if(isset($id) && !isset($_GET['used'])){
208 
209                 if(isset($has_child) && count($has_child)>0){
210                         $child_category = $catm->getChildCategory($id);
211                    //     $child_category_nik = $catm->getChildCategory_nik($_SESSION['parent_category']);
212 
213                 }else{
214                     $child_category = $catm->getChildCategory($catm->getParentCategory($id));
Automobiles

Back
Automobiles
Browse More
Filter By Price
Automobiles
  • Sort by:
Available on
© Copyright All Rights Reserved 2015 | Freeki.com
Design & Development by Just Total Tech