aboutsummaryrefslogtreecommitdiffstats
path: root/include/section_init.inc.php
diff options
context:
space:
mode:
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
{