Skip to content
Snippets Groups Projects
Commit 18450149 authored by Florian Schaal's avatar Florian Schaal
Browse files

Fixes #4092

parent b8d71e5d
No related branches found
No related tags found
1 merge request!419Fixes #4092
...@@ -93,6 +93,7 @@ class page_action extends tform_actions { ...@@ -93,6 +93,7 @@ class page_action extends tform_actions {
// Get the spamfilter policys for the user // Get the spamfilter policys for the user
$tmp_user = $app->db->queryOneRecord("SELECT policy_id FROM spamfilter_users WHERE email = ?", $this->dataRecord["email"]); $tmp_user = $app->db->queryOneRecord("SELECT policy_id FROM spamfilter_users WHERE email = ?", $this->dataRecord["email"]);
if (isset($_POST['policy'])) $tmp_user['policy_id'] = intval($_POST['policy']);
$sql = "SELECT id, policy_name FROM spamfilter_policy WHERE ".$app->tform->getAuthSQL('r') . " ORDER BY policy_name"; $sql = "SELECT id, policy_name FROM spamfilter_policy WHERE ".$app->tform->getAuthSQL('r') . " ORDER BY policy_name";
$policys = $app->db->queryAllRecords($sql); $policys = $app->db->queryAllRecords($sql);
$policy_select = "<option value='0'>".$app->tform->lng("no_policy")."</option>"; $policy_select = "<option value='0'>".$app->tform->lng("no_policy")."</option>";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment