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

resync: fixed mail_user_filter and cosmetical corrections during mail-resync

parent ac34c0a9
No related branches found
No related tags found
No related merge requests found
......@@ -389,7 +389,9 @@ class page_action extends tform_actions {
unset($temp);
if ( isset($temp_id) ) $server_id = rtrim($temp_id,',');
$sql = "SELECT * FROM $db_table WHERE server_id IN (".$server_id.") ".$opt;
$sql = "SELECT * FROM $db_table";
if ($db_table != "mail_user_filter") $sql .= " WHERE server_id IN (".$server_id.") ";
$sql .= $opt;
if ($active) $sql .= " AND active = 'y'";
$records = $app->db->queryAllRecords($sql);
......@@ -407,7 +409,7 @@ class page_action extends tform_actions {
if(!empty($records))
foreach($records as $rec) {
$app->db->datalogUpdate($db_table, $rec, $index_field, $rec[$index_field], true);
$msg .= '['.$server_name[$rec['server_id']].'] '.$rec[$msg_field].'<br>';
if(!empty($rec[$msg_field])) $msg .= '['.$server_name[$rec['server_id']].'] '.$rec[$msg_field].'<br>';
}
else $msg .= $app->tform->wordbook['no_results_txt'].'<br>';
......
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