From 16b2b8593403d381432c919441672474cc762c34 Mon Sep 17 00:00:00 2001 From: z0rglub Date: Mon, 26 Jul 2004 20:41:11 +0000 Subject: display search results even if no element found git-svn-id: http://piwigo.org/svn/trunk@453 68402e56-0260-453c-a942-63ccdbb3a9ee --- category.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'category.php') diff --git a/category.php b/category.php index ed5889951..1d84483a7 100644 --- a/category.php +++ b/category.php @@ -269,7 +269,9 @@ $template->assign_block_vars('summary', array( )); //------------------------------------------------------ main part : thumbnails -if (isset($page['cat']) and $page['cat_nb_images'] != 0) +if (isset($page['cat']) + and ((is_numeric($page['cat']) and $page['cat_nb_images'] != 0) + or $page['cat'] == 'search')) { include(PHPWG_ROOT_PATH.'include/category_default.inc.php'); } -- cgit v1.2.3