[-] FO : Prevent unsassigned category id, thans @PrestaCaptainFLAM
This commit is contained in:
1 parent
1581a371c5
commit
3483706951
1 file changed
+1
-1
@@ -158,7 +158,7 @@ class ProductControllerCore extends FrontController
|
|||||||
$this->category = new Category($regs[5], (int)$this->context->cookie->id_lang);
|
$this->category = new Category($regs[5], (int)$this->context->cookie->id_lang);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
if ( ! isset($this->category))
|
||||||
// Set default product category
|
// Set default product category
|
||||||
$this->category = new Category($this->product->id_category_default, (int)$this->context->cookie->id_lang);
|
$this->category = new Category($this->product->id_category_default, (int)$this->context->cookie->id_lang);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user