Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Register
Sign in
Toggle navigation
Menu
Open sidebar
Guilherme Filippo
ISPConfig 3
Commits
e3ba932c
Commit
e3ba932c
authored
Sep 16, 2010
by
tbrehm
Browse files
Fixed: FS#1310 - mailfilter not removed from database
parent
f150f05b
Changes
1
Hide whitespace changes
Inline
Side-by-side
interface/web/mail/mail_user_del.php
View file @
e3ba932c
...
...
@@ -57,6 +57,13 @@ class page_action extends tform_actions {
$tmp_user
=
$app
->
db
->
queryOneRecord
(
"SELECT id FROM spamfilter_users WHERE email = '"
.
mysql_real_escape_string
(
$this
->
dataRecord
[
"email"
])
.
"'"
);
$app
->
db
->
datalogDelete
(
'spamfilter_users'
,
'id'
,
$tmp_user
[
"id"
]);
$tmp_filters
=
$app
->
db
->
queryAllRecords
(
"SELECT filter_id FROM mail_user_filter WHERE mailuser_id = '"
.
$this
->
id
.
"'"
);
if
(
is_array
(
$tmp_filters
))
{
foreach
(
$tmp_filters
as
$tmp
)
{
$app
->
db
->
datalogDelete
(
'mail_user_filter'
,
'filter_id'
,
$tmp
[
"filter_id"
]);
}
}
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment