Commit 0b571e73 authored by Florian Schaal's avatar Florian Schaal

fixed typo in server/plugins-available/mail_plugin.inc.php

parent 66fa9bdd
......@@ -451,7 +451,7 @@ class mail_plugin {
if( $server_config['backup_dir_is_mount'] == 'y' && !$app->system->mount_backup_dir($backup_dir) ) $mount_backup = false;
if($mount_backup){
$sql = "SELECT * FROM mail_domain WHERE domain = ?";
$domain_rec = $app->db->queryOneRecord($sql, explode("@",$data['old']['email'])[1]);
$domain_rec = $app->db->queryOneRecord($sql, explode("@",$data['old']['email'][1]));
if (is_array($domain_rec)) {
$mail_backup_dir = $backup_dir.'/mail'.$domain_rec['domain_id'];
$mail_backup_files = 'mail'.$data['old']['mailuser_id'];
......
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