projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1362d95
)
MessagePreview.php
author
Edward
<edward@roojs.com>
Thu, 20 Feb 2014 06:40:26 +0000
(14:40 +0800)
committer
Edward
<edward@roojs.com>
Thu, 20 Feb 2014 06:40:26 +0000
(14:40 +0800)
MessagePreview.php
patch
|
blob
|
history
diff --git
a/MessagePreview.php
b/MessagePreview.php
index
ad78466
..
b4238f3
100644
(file)
--- a/
MessagePreview.php
+++ b/
MessagePreview.php
@@
-38,14
+38,11
@@
class Pman_Core_MessagePreview extends Pman
{
function post()
{
- if(empty($_REQUEST['_id'])){
- $this->jerr('id got error');
- }
- if(empty($_REQUEST['_action'])){
- $this->jerr('preview type not set');
+ if(empty($_REQUEST['_id']) || empty($_REQUEST['_table'])){
+ $this->jerr('Missing Options');
}
- $msg = DB_DataObject::factory(
'crm_mailing_list_message'
);
+ $msg = DB_DataObject::factory(
$_REQUEST['_table']
);
$msg->get($_REQUEST['_id']);