From 74774be65e4b08b493ce3c291d2248172df4696b Mon Sep 17 00:00:00 2001 From: vAugagneur Date: Thu, 10 Jan 2013 09:31:46 +0100 Subject: [PATCH] [-] FO : fixed bug #PSCFV-5569 - Trying to get property of non-object in SitemapController --- controllers/front/SitemapController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/controllers/front/SitemapController.php b/controllers/front/SitemapController.php index b541f323e..f5e46c425 100644 --- a/controllers/front/SitemapController.php +++ b/controllers/front/SitemapController.php @@ -50,7 +50,7 @@ class SitemapControllerCore extends FrontController if(Module::isInstalled('blockmanufacturer')) { $blockmanufacturer = Module::getInstanceByName('blockmanufacturer'); - $this->context->smarty->assign('display_manufacturer_link', (bool)$blockmanufacturer->active); + $this->context->smarty->assign('display_manufacturer_link', isset($blockmanufacturer->active) ? (bool)$blockmanufacturer->active : false); } else $this->context->smarty->assign('display_manufacturer_link', 0); @@ -58,7 +58,7 @@ class SitemapControllerCore extends FrontController if(Module::isInstalled('blocksupplier')) { $blocksupplier = Module::getInstanceByName('blocksupplier'); - $this->context->smarty->assign('display_supplier_link', (bool)$blocksupplier->active); + $this->context->smarty->assign('display_supplier_link', isset($blocksupplier->active) ? (bool)$blocksupplier->active : false); } else $this->context->smarty->assign('display_supplier_link', 0);