[Xfce4-commits] [www/forum.xfce.org] 41/79: Fix forum cleanup plugins.
noreply at xfce.org
noreply at xfce.org
Tue May 21 14:48:36 CEST 2019
This is an automated email from the git hooks/post-receive script.
s k u n n y k p u s h e d a c o m m i t t o b r a n c h o l d f o r u m
in repository www/forum.xfce.org.
commit c82197a45b1db0fb5552beb210343cecb03b4eaa
Author: Nick Schermer <nick at xfce.org>
Date: Tue May 24 19:31:57 2011 +0200
Fix forum cleanup plugins.
---
plugins/AMP_Inactive_users.php | 3 ++-
plugins/AMP_Profile_spam.php | 3 ++-
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/plugins/AMP_Inactive_users.php b/plugins/AMP_Inactive_users.php
index 1dcce64..0bcbd0f 100644
--- a/plugins/AMP_Inactive_users.php
+++ b/plugins/AMP_Inactive_users.php
@@ -35,7 +35,8 @@ if (isset($_POST['delete-users']) && is_array($_POST['delete-users']))
}
// Delete any subscriptions
- $db->query('DELETE FROM '.$db->prefix.'subscriptions WHERE user_id='.$user) or error('Unable to delete subscriptions', __FILE__, __LINE__, $db->error());
+ $db->query('DELETE FROM '.$db->prefix.'forum_subscriptions WHERE user_id='.$user) or error('Unable to delete forum subscriptions', __FILE__, __LINE__, $db->error());
+ $db->query('DELETE FROM '.$db->prefix.'topic_subscriptions WHERE user_id='.$user) or error('Unable to delete topic subscriptions', __FILE__, __LINE__, $db->error());
// Remove him/her from the online list (if they happen to be logged in)
$db->query('DELETE FROM '.$db->prefix.'online WHERE user_id='.$user) or error('Unable to remove user from online list', __FILE__, __LINE__, $db->error());
diff --git a/plugins/AMP_Profile_spam.php b/plugins/AMP_Profile_spam.php
index a063dc7..6ae9889 100644
--- a/plugins/AMP_Profile_spam.php
+++ b/plugins/AMP_Profile_spam.php
@@ -36,7 +36,8 @@ if (isset($_POST['delete-users']) && is_array($_POST['delete-users']))
}
// Delete any subscriptions
- $db->query('DELETE FROM '.$db->prefix.'subscriptions WHERE user_id='.$user) or error('Unable to delete subscriptions', __FILE__, __LINE__, $db->error());
+ $db->query('DELETE FROM '.$db->prefix.'forum_subscriptions WHERE user_id='.$user) or error('Unable to delete forum subscriptions', __FILE__, __LINE__, $db->error());
+ $db->query('DELETE FROM '.$db->prefix.'topic_subscriptions WHERE user_id='.$user) or error('Unable to delete topic subscriptions', __FILE__, __LINE__, $db->error());
// Remove him/her from the online list (if they happen to be logged in)
$db->query('DELETE FROM '.$db->prefix.'online WHERE user_id='.$user) or error('Unable to remove user from online list', __FILE__, __LINE__, $db->error());
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list