Commit b35d95da authored by Mario's avatar Mario
Browse files

dismiss deleted xchans in query

parent feca5afa
Pipeline #446684 passed with stage
in 3 minutes and 2 seconds
......@@ -177,8 +177,7 @@ class Messages {
stringify_array_elms($recips, true);
$query_str = implode(',', $recips);
$xchans = dbq("SELECT DISTINCT xchan_name FROM xchan WHERE $column IN ($query_str)");
$xchans = dbq("SELECT DISTINCT xchan_name FROM xchan WHERE $column IN ($query_str) AND xchan_deleted = 0");
foreach($xchans as $xchan) {
$recipients .= $xchan['xchan_name'] . ', ';
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment