projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
e70f24c
)
MessagePreview.php
author
edward
<edward@roojs.com>
Mon, 18 Jul 2016 08:24:26 +0000
(16:24 +0800)
committer
edward
<edward@roojs.com>
Mon, 18 Jul 2016 08:24:26 +0000
(16:24 +0800)
MessagePreview.php
patch
|
blob
|
history
diff --git
a/MessagePreview.php
b/MessagePreview.php
index
afd0763
..
09d38d9
100644
(file)
--- a/
MessagePreview.php
+++ b/
MessagePreview.php
@@
-67,14
+67,14
@@
class Pman_Core_MessagePreview extends Pman
function coreEmailSendTest()
{
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');
}
$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");
}
}
}
}
}
}