aboutsummaryrefslogtreecommitdiffstats
path: root/picture.php
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2005-02-01 23:19:44 +0000
committerplegall <plg@piwigo.org>2005-02-01 23:19:44 +0000
commit357ed721630c43306838bf5ba49cc0038ceeaeb8 (patch)
treefed77269ff95460ebad56252da7634264acecc65 /picture.php
parent750354a23175bc818abe505f4d96768190f37fff (diff)
- bug 75 fixed : unlogical screen when removing the last favorite
git-svn-id: http://piwigo.org/svn/trunk@727 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-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