Carsten Schoene
2014-01-01 4f69fb7ec603b780c9b4fa575bbc74e0507ceea3
interface/web/client/client_message.php
@@ -65,7 +65,7 @@
            $tmp_client_ids = explode(',', $circle['client_ids']);
            $where = array();
            foreach($tmp_client_ids as $tmp_client_id){
               $where[] = 'client_id = '.$tmp_client_id;
               $where[] = 'client_id = '.$app->functions->intval($tmp_client_id);
            }
            if(!empty($where)) $where_clause = ' AND ('.implode(' OR ', $where).')';
            $sql = "SELECT * FROM client WHERE email != ''".$where_clause;