diff --git a/includes/core/class-mail.php b/includes/core/class-mail.php index 4d98a860..14b0de49 100644 --- a/includes/core/class-mail.php +++ b/includes/core/class-mail.php @@ -275,7 +275,7 @@ if ( ! class_exists( 'Mail' ) ) { } } - if ( copy( $plugin_template_path, $theme_template_path ) ) { + if ( file_exists( $plugin_template_path ) && copy( $plugin_template_path, $theme_template_path ) ) { return true; } else { return false;