aboutsummaryrefslogtreecommitdiffstats
path: root/include/section_init.inc.php
diff options
context:
space:
mode:
authornikrou <nikrou@piwigo.org>2009-01-03 19:38:53 +0000
committernikrou <nikrou@piwigo.org>2009-01-03 19:38:53 +0000
commit72b2c126c4c73dc32fc57f43bc2b26069df99d87 (patch)
tree7b249684380a95f5d1b7a4f42e8bb1ab864d626e /include/section_init.inc.php
parentb225a52b918168cf00e0cd275f62bbca624d4833 (diff)
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
Diffstat (limited to '')
-rw-r--r--include/section_init.inc.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/section_init.inc.php b/include/section_init.inc.php
index 897b2a01d..4eb444780 100644
--- a/include/section_init.inc.php
+++ b/include/section_init.inc.php
@@ -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
{