MessagePreview.php
authorEdward <edward@roojs.com>
Thu, 20 Feb 2014 05:38:44 +0000 (13:38 +0800)
committerEdward <edward@roojs.com>
Thu, 20 Feb 2014 05:38:44 +0000 (13:38 +0800)
MessagePreview.php

index 2212e12..57aad7f 100644 (file)
@@ -20,12 +20,12 @@ class Pman_Core_MessagePreview extends Pman
     
     function get()
     {
-        if(empty($_REQUEST['_id']) || empty($_REQUEST['_table'])){
+        if(empty($_REQUEST['_id'])){
             $this->jerr('missing options!');
         }
         
         
-        $mlq = DB_DataObject::factory($_REQUEST['_table']);
+        $mlq = DB_DataObject::factory('core_mailing_list_message');
         
         $mlq->get($_REQUEST['_id']);