Post by cofran » Thu Jan 21, 2010 11:26 am

Simple bug in catalog/controller/product/manufacturer.php when manufacturer_id does not exist in url, for sample: http://www.dominio.com/index.php?route= ... nufacturer

Code: Select all

      		$this->document->breadcrumbs[] = array(
        		'href'      => $this->model_tool_seo_url->rewrite($this->url->http('product/manufacturer&manufacturer_id=' . $this->request->get['manufacturer_id'] . $url)),
        		'text'      => $this->language->get('text_error'),
        		'separator' => $this->language->get('text_separator')
      		);

User avatar
Active Member

Posts

Joined
Thu Oct 01, 2009 7:37 am
Location - Córdoba, Argentina

Post by Daniel » Thu Jan 21, 2010 4:53 pm

ok thanks!

OpenCart®
Project Owner & Developer.


User avatar
Administrator

Posts

Joined
Fri Nov 03, 2006 6:57 pm

Post by twei » Sun Jan 24, 2010 2:16 am

How do I resolve this error?

New member

Posts

Joined
Mon Dec 21, 2009 2:12 am

Post by cofran » Mon Jan 25, 2010 11:57 am

change:

Code: Select all

      		$this->document->breadcrumbs[] = array(
        		'href'      => $this->model_tool_seo_url->rewrite($this->url->http('product/manufacturer&manufacturer_id=' . $this->request->get['manufacturer_id'] . $url)),
        		'text'      => $this->language->get('text_error'),
        		'separator' => $this->language->get('text_separator')
      		);
for:

Code: Select all

            if (isset($this->request->get['manufacturer_id'])) {
      		$this->document->breadcrumbs[] = array(
        		'href'      => $this->model_tool_seo_url->rewrite($this->url->http('product/manufacturer&manufacturer_id=' . $this->request->get['manufacturer_id'] . $url)),
        		'text'      => $this->language->get('text_error'),
        		'separator' => $this->language->get('text_separator')
      		);
            }

User avatar
Active Member

Posts

Joined
Thu Oct 01, 2009 7:37 am
Location - Córdoba, Argentina

Post by twei » Mon Jan 25, 2010 10:25 pm

Thank you very much ;D ;D

New member

Posts

Joined
Mon Dec 21, 2009 2:12 am
Who is online

Users browsing this forum: No registered users and 4 guests