- bug 75 fixed : unlogical screen when removing the last favorite

git-svn-id: http://piwigo.org/svn/trunk@727 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
plegall
2005-02-01 23:19:44 +00:00
parent 750354a231
commit 357ed72163
+1 -1
View File
@@ -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