improve task:0000902:

- add image del_all_favorites.png
- make a redirect after delete

git-svn-id: http://piwigo.org/svn/trunk@3039 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
nikrou
2009-01-03 19:38:53 +00:00
parent b225a52b91
commit 72b2c126c4
2 changed files with 3 additions and 1 deletions

View File

@@ -380,13 +380,15 @@ SELECT DISTINCT image_id
)
);
if (!empty($_GET['action']) && ($_GET['action'] == 'remove_all_from_favorites'))
if (!empty($_GET['action'])
&& ($_GET['action'] == 'remove_all_from_favorites'))
{
$query = '
DELETE FROM '.FAVORITES_TABLE.'
WHERE user_id = '.$user['id'].'
;';
pwg_query($query);
redirect('index.php?/favorites');
}
else
{

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB