aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorz0rglub <z0rglub@piwigo.org>2004-07-26 20:41:11 +0000
committerz0rglub <z0rglub@piwigo.org>2004-07-26 20:41:11 +0000
commit16b2b8593403d381432c919441672474cc762c34 (patch)
treee925265f265fd609e9cb583fe64ed7a2630d1faf
parentf007a28bf6a40632e06f227a59f45d525136f9f4 (diff)
display search results even if no element found
git-svn-id: http://piwigo.org/svn/trunk@453 68402e56-0260-453c-a942-63ccdbb3a9ee
-rw-r--r--category.php4
1 files changed, 3 insertions, 1 deletions
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');
}