Skip to content
Snippets Groups Projects
Commit c719dc0b authored by tbrehm's avatar tbrehm
Browse files

Fixed a warning in maildrop plugin.

parent 92e50958
No related branches found
No related tags found
No related merge requests found
......@@ -211,10 +211,14 @@ class maildrop_plugin {
unset($config_file_path);
} else {
// Delete the mailfilter recipe
$email_parts = explode("@",$data["old"]["email"]);
$file = $this->mailfilter_config_dir.'/'.$email_parts[1].'/'.$email_parts[0].'/.mailfilter';
if(is_file($file)) unlink($file) or $app->log("Unable to delete file: $file",LOGLEVEL_WARN);
$app->log("Deleting custom Mailfiter".$file,LOGLEVEL_DEBUG);
if(isset($data["old"]["email"])) {
$email_parts = explode("@",$data["old"]["email"]);
$file = $this->mailfilter_config_dir.'/'.$email_parts[1].'/'.$email_parts[0].'/.mailfilter';
if(is_file($file)) {
unlink($file) or $app->log("Unable to delete file: $file",LOGLEVEL_WARN);
$app->log("Deleting custom Mailfiter".$file,LOGLEVEL_DEBUG);
}
}
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment