Commit 532e1271 authored by Florian Schaal's avatar Florian Schaal
Browse files

update sql-query to new format

parent 1bed1901
......@@ -53,8 +53,8 @@ class cronjob_purge_mailboxes extends cronjob {
public function onRunJob() {
global $app, $conf;
$sql = "SELECT email FROM mail_user WHERE maildir_format = 'mdbox' AND server_id = ".$server_id;
$records = $app->db->queryAllRecords($sql);
$sql = "SELECT email FROM mail_user WHERE maildir_format = 'mdbox' AND server_id = ?";
$records = $app->db->queryAllRecords($sql, $server_id);
if(is_array($records)) {
foreach($records as $rec){
......
Supports Markdown
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