From 387141670097e7b9285e075343fc756dda84edf3 Mon Sep 17 00:00:00 2001 From: edward Date: Mon, 18 Jul 2016 16:40:41 +0800 Subject: [PATCH] MessagePreview.php --- MessagePreview.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MessagePreview.php b/MessagePreview.php index df5ca571..c57a8cf7 100644 --- a/MessagePreview.php +++ b/MessagePreview.php @@ -84,7 +84,7 @@ class Pman_Core_MessagePreview extends Pman $x = new $cls; $method = "test_{$core_email->name}"; - $this->jerr("{$method} does not exists in {$cls}"); + if(!method_exists($x, $method)){ $this->jerr("{$method} does not exists in {$cls}"); } -- 2.39.2