From acee5463ddf4e72a995ee2478857944ba432be75 Mon Sep 17 00:00:00 2001 From: bMancone Date: Wed, 24 Aug 2011 13:28:31 +0000 Subject: [PATCH] [-] MO : HomeSlider git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@8173 b9a71923-0436-4b27-9f14-aed3839534dd --- modules/homeslider/homeslider.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/homeslider/homeslider.php b/modules/homeslider/homeslider.php index 975e5e665..02036fe27 100644 --- a/modules/homeslider/homeslider.php +++ b/modules/homeslider/homeslider.php @@ -564,6 +564,8 @@ class HomeSlider extends Module public function hookHeader() { + if (!$this->getSlides(true)) + return; $this->context->controller->addJS(_PS_JS_DIR_.'jquery/jquery-ui-1.8.10.custom.min.js'); $this->context->controller->addJS($this->_path.'js/jquery.bxSlider.min.js'); $this->context->controller->addJS($this->_path.'js/homeslider.js');