aboutsummaryrefslogtreecommitdiffstats
path: root/picture.php
diff options
context:
space:
mode:
Diffstat (limited to 'picture.php')
-rw-r--r--picture.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/picture.php b/picture.php
index facdfd055..abf96aaa3 100644
--- a/picture.php
+++ b/picture.php
@@ -267,7 +267,7 @@ if ( isset( $_GET['add_fav'] ) )
}
if ( !$_GET['add_fav'] and $page['cat'] == 'fav' )
{
- if (!$has_prev and $mysql_num_rows == 1)
+ if (!$has_prev and !$has_next)
{
// there is no favorite picture anymore we redirect the user to the
// category page