From: edward Date: Mon, 18 Jul 2016 08:32:25 +0000 (+0800) Subject: MessagePreview.php X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=commitdiff_plain;h=670340bd6d0766c9cf971212329ac24262e01208 MessagePreview.php --- diff --git a/MessagePreview.php b/MessagePreview.php index db0deabd..beae16c1 100644 --- a/MessagePreview.php +++ b/MessagePreview.php @@ -72,7 +72,7 @@ class Pman_Core_MessagePreview extends Pman if(!$core_email->get($_REQUEST['_id'])){ $this->jerr('Invalid Message ID'); } - $this->jerr("[{$core_email->name}] does not has test class"); + if(empty($core_email->test_class)){ $this->jerr("[{$core_email->name}] does not has test class"); }