We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1bed190 commit 532e127Copy full SHA for 532e127
1 file changed
server/lib/classes/cron.d/600-purge_mailboxes.inc.php
@@ -53,8 +53,8 @@ public function onBeforeRun() {
53
public function onRunJob() {
54
global $app, $conf;
55
56
- $sql = "SELECT email FROM mail_user WHERE maildir_format = 'mdbox' AND server_id = ".$server_id;
57
- $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);
58
59
if(is_array($records)) {
60
foreach($records as $rec){
0 commit comments