Skip to content

Commit 532e127

Browse files
author
Florian Schaal
committed
update sql-query to new format
1 parent 1bed190 commit 532e127

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/lib/classes/cron.d/600-purge_mailboxes.inc.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ public function onBeforeRun() {
5353
public function onRunJob() {
5454
global $app, $conf;
5555

56-
$sql = "SELECT email FROM mail_user WHERE maildir_format = 'mdbox' AND server_id = ".$server_id;
57-
$records = $app->db->queryAllRecords($sql);
56+
$sql = "SELECT email FROM mail_user WHERE maildir_format = 'mdbox' AND server_id = ?";
57+
$records = $app->db->queryAllRecords($sql, $server_id);
5858

5959
if(is_array($records)) {
6060
foreach($records as $rec){

0 commit comments

Comments
 (0)