From 0fa0c8bb07c80884ac8b79560ba4c4119abfcd5c Mon Sep 17 00:00:00 2001 From: gweltas Date: Mon, 12 Jan 2004 23:41:53 +0000 Subject: Minor corrections of PHP warnings git-svn-id: http://piwigo.org/svn/branches/release-1_3@276 68402e56-0260-453c-a942-63ccdbb3a9ee --- template/default/htmlfunctions.inc.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'template/default') diff --git a/template/default/htmlfunctions.inc.php b/template/default/htmlfunctions.inc.php index f56448eb6..aade6e2e5 100644 --- a/template/default/htmlfunctions.inc.php +++ b/template/default/htmlfunctions.inc.php @@ -188,12 +188,16 @@ function display_category( $category, $indent, $handle ) else { $vtp->addSession( $handle, 'bullet_w_link' ); - $url = './category.php?cat='.$page['cat']; + $url = './category.php'; + if (isset($page['cat'])) + { + $url .='?cat='.$page['cat']; $url.= '&expand='.$category['expand_string']; if ( $page['cat'] == 'search' ) { $url.= '&search='.$_GET['search'].'&mode='.$_GET['mode']; } + } $vtp->setVar( $handle, 'bullet_w_link.bullet_link', add_session_id($url) ); if ( $category['expanded'] ) { -- cgit v1.2.3