diff --git a/application/controllers/GalleryController.php b/application/controllers/GalleryController.php index c1974b8..9e4166b 100644 --- a/application/controllers/GalleryController.php +++ b/application/controllers/GalleryController.php @@ -18,6 +18,7 @@ public function init() public function indexAction() { $mapper = new Application_Model_GalleryMapper(); $this->view->galleries = $mapper->fetchAll(null, 'folder_date DESC', 20); + foreach ($this->view->galleries as $key => $gallery) { if (!$gallery->getPhotos()) unset($this->view->galleries[$key]); } diff --git a/application/layouts/scripts/layout.phtml b/application/layouts/scripts/layout.phtml index 44a4f6d..c582fc9 100644 --- a/application/layouts/scripts/layout.phtml +++ b/application/layouts/scripts/layout.phtml @@ -6,6 +6,7 @@ headLink()->appendStylesheet('/css/global.css') ?> headScript() ->prependFile('/js/main.js') + ->prependFile('/js/jquery-ui-1.8.18.min.js') ->prependFile('/js/jquery-1.7.2.min.js') ?>