aboutsummaryrefslogtreecommitdiffstats
path: root/include/category_default.inc.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 /include/category_default.inc.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 'include/category_default.inc.php')
-rw-r--r--include/category_default.inc.php28
1 files changed, 15 insertions, 13 deletions
diff --git a/include/category_default.inc.php b/include/category_default.inc.php
index 5c31e4a18..e401aec9b 100644
--- a/include/category_default.inc.php
+++ b/include/category_default.inc.php
@@ -85,7 +85,7 @@ foreach ($pictures as $row)
if (isset($page['cat']))
{
- $url_link.= 'cat='.$page['cat'].'&amp;';
+ $url_link.= '&amp;cat='.$page['cat'];
if ($page['cat'] == 'search')
{
@@ -125,19 +125,21 @@ foreach ($pictures as $row)
{
$name = str_replace('_', ' ', get_filename_wo_extension($row['file']));
}
- if ($page['cat'] == 'best_rated')
+ if ( isset($page['cat']) )
{
- $name = '('.$row['average_rate'].') '.$name;
- }
- else
- if ($page['cat'] == 'most_visited')
- {
- $name = '('.$row['hit'].') '.$name;
- }
-
- if ($page['cat'] == 'search')
- {
- $name = replace_search($name, $_GET['search']);
+ if ($page['cat'] == 'best_rated')
+ {
+ $name = '('.$row['average_rate'].') '.$name;
+ }
+ elseif ($page['cat'] == 'most_visited')
+ {
+ $name = '('.$row['hit'].') '.$name;
+ }
+
+ if ($page['cat'] == 'search')
+ {
+ $name = replace_search($name, $_GET['search']);
+ }
}
$template->assign_block_vars(