From 357ed721630c43306838bf5ba49cc0038ceeaeb8 Mon Sep 17 00:00:00 2001 From: plegall Date: Tue, 1 Feb 2005 23:19:44 +0000 Subject: - bug 75 fixed : unlogical screen when removing the last favorite git-svn-id: http://piwigo.org/svn/trunk@727 68402e56-0260-453c-a942-63ccdbb3a9ee --- picture.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3