From 269bd2f7bb8aecf612ce9bfdef592780103ab935 Mon Sep 17 00:00:00 2001 From: nikitozzzzzzz Date: Sun, 12 Nov 2017 20:32:17 +0200 Subject: [PATCH] - fixed small notice; --- includes/core/class-mail.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;