title: PHP error - Opencart 3.0.3.2 images with subcategory
body: <p>(I know there are questions on this for previous versions of Opencart but I am using 3.0.3.2. I am getting a php error when I alter the code to incorporate images in the Refine Search. (The linked computer images are just placeholders.)</p>
  
  <p>I tried altering code in catalog/controller/product/category.php</p>
  
  <pre><code> if ($category_info['image']) {
              $data['thumb'] = $this-&gt;model_tool_image-&gt;resize($category_info['image'], $this-&gt;config-&gt;get('theme_' . $this-&gt;config-&gt;get('config_theme') . '_image_category_width'), $this-&gt;config-&gt;get('theme_' . $this-&gt;config-&gt;get('config_theme') . '_image_category_height'));
          } else {
              $data['thumb'] = '';
          }
  
          $data['description'] = html_entity_decode($category_info['description'], ENT_QUOTES, 'UTF-8');
          $data['compare'] = $this-&gt;url-&gt;link('product/compare');
  
          $url = '';
  
          if (isset($this-&gt;request-&gt;get['filter'])) {
              $url .= '&amp;filter=' . $this-&gt;request-&gt;get['filter'];
          }
  
          if (isset($this-&gt;request-&gt;get['sort'])) {
              $url .= '&amp;sort=' . $this-&gt;request-&gt;get['sort'];
          }
  
          if (isset($this-&gt;request-&gt;get['order'])) {
              $url .= '&amp;order=' . $this-&gt;request-&gt;get['order'];
          }
  
          if (isset($this-&gt;request-&gt;get['limit'])) {
              $url .= '&amp;limit=' . $this-&gt;request-&gt;get['limit'];
          }
  
  
          $product_total = $this-&gt;model_catalog_product-&gt;getTotalProducts($filter_data);
  
          $results = $this-&gt;model_catalog_product-&gt;getProducts($filter_data);
  </code></pre>
  
  <p>I get an undefined variable error on lines 135 and 137 (last lines of code above).</p>