Commit c719dc0b authored by tbrehm's avatar tbrehm

Fixed a warning in maildrop plugin.

parent 92e50958
...@@ -211,10 +211,14 @@ class maildrop_plugin { ...@@ -211,10 +211,14 @@ class maildrop_plugin {
unset($config_file_path); unset($config_file_path);
} else { } else {
// Delete the mailfilter recipe // Delete the mailfilter recipe
$email_parts = explode("@",$data["old"]["email"]); if(isset($data["old"]["email"])) {
$file = $this->mailfilter_config_dir.'/'.$email_parts[1].'/'.$email_parts[0].'/.mailfilter'; $email_parts = explode("@",$data["old"]["email"]);
if(is_file($file)) unlink($file) or $app->log("Unable to delete file: $file",LOGLEVEL_WARN); $file = $this->mailfilter_config_dir.'/'.$email_parts[1].'/'.$email_parts[0].'/.mailfilter';
$app->log("Deleting custom Mailfiter".$file,LOGLEVEL_DEBUG); if(is_file($file)) {
unlink($file) or $app->log("Unable to delete file: $file",LOGLEVEL_WARN);
$app->log("Deleting custom Mailfiter".$file,LOGLEVEL_DEBUG);
}
}
} }
} }
} }
......
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