aboutsummaryrefslogtreecommitdiffstats
path: root/category.php
diff options
context:
space:
mode:
authorrvelices <rv-github@modusoptimus.com>2006-02-24 01:16:30 +0000
committerrvelices <rv-github@modusoptimus.com>2006-02-24 01:16:30 +0000
commit3aff4f0bfec650d7a080b919b299ddcf6fc6ee59 (patch)
tree6bebc39a9de733910e32b117d82944bde033c214 /category.php
parent5fa3664567ad8240154566cce1f8479c4fd93909 (diff)
fix: remove all php warnings and notices
git-svn-id: http://piwigo.org/svn/trunk@1056 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'category.php')
-rw-r--r--category.php26
1 files changed, 14 insertions, 12 deletions
diff --git a/category.php b/category.php
index 07d15a95c..e466a5bb2 100644
--- a/category.php
+++ b/category.php
@@ -85,21 +85,22 @@ if ( isset($page['cat_nb_images'])
if ( isset($page['cat']) )
{
$nav_url .= 'cat='.$page['cat'].'&amp;';
- }
- switch ($page['cat'])
- {
- case 'search':
+ switch ($page['cat'])
{
- $nav_url.= 'search='.$_GET['search'].'&amp;';
- break;
- }
- case 'list':
- {
- $nav_url.= 'list='.$_GET['list'].'&amp;';
- break;
+ case 'search':
+ {
+ $nav_url.= 'search='.$_GET['search'].'&amp;';
+ break;
+ }
+ case 'list':
+ {
+ $nav_url.= 'list='.$_GET['list'].'&amp;';
+ break;
+ }
}
}
+
if ( isset($_GET['calendar']) )
{
$nav_url.= 'calendar='.$_GET['calendar'];
@@ -401,7 +402,8 @@ if ( $page['navigation_bar'] != '' )
);
}
-if ($page['cat_nb_images']>0 and
+if ( ( isset($page['cat_nb_images']) and $page['cat_nb_images']>0 )
+ and
( !isset($page['cat'])
or ($page['cat'] != 'most_visited' and $page['cat'] != 'best_rated') )
)