MessagePreview.php
authoredward <edward@roojs.com>
Mon, 18 Jul 2016 08:24:26 +0000 (16:24 +0800)
committeredward <edward@roojs.com>
Mon, 18 Jul 2016 08:24:26 +0000 (16:24 +0800)
MessagePreview.php

index afd0763..09d38d9 100644 (file)
@@ -67,14 +67,14 @@ class Pman_Core_MessagePreview extends Pman
     
     function coreEmailSendTest()
     {
-        $table = DB_DataObject::factory($_REQUEST['_table']);
+        $core_email = DB_DataObject::factory($_REQUEST['core_email']);
         
-        if($table->get($_REQUEST['_id'])){
+        if($core_email->get($_REQUEST['_id'])){
             $this->jerr('Invalid Message ID');
         }
-        
-        if(empty($table->test_class)){
-            
+        $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");
         }
     }
 }