aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--include/section_init.inc.php4
-rw-r--r--template/yoga/icon/del_all_favorites.pngbin0 -> 1424 bytes
2 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
{
diff --git a/template/yoga/icon/del_all_favorites.png b/template/yoga/icon/del_all_favorites.png
new file mode 100644
index 000000000..cfc609749
--- /dev/null
+++ b/template/yoga/icon/del_all_favorites.png
Binary files differ