projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
479ae7c
)
DataObjects/Core_email.php
author
edward
<edward@roojs.com>
Mon, 18 Jul 2016 07:39:28 +0000
(15:39 +0800)
committer
edward
<edward@roojs.com>
Mon, 18 Jul 2016 07:39:28 +0000
(15:39 +0800)
DataObjects/Core_email.php
patch
|
blob
|
history
diff --git
a/DataObjects/Core_email.php
b/DataObjects/Core_email.php
index
23a1770
..
b051035
100644
(file)
--- a/
DataObjects/Core_email.php
+++ b/
DataObjects/Core_email.php
@@
-309,8
+309,11
@@
class Pman_Core_DataObjects_Core_email extends DB_DataObject
$this->get('name', $contents['template']);
}
+ if(empty($this->active)){
+ return $p->raiseError("template [{$contents['template']}] is Disabled");
+ }
+
if(empty($this->id)){
-
return $p->raiseError("template [{$contents['template']}] has not been set");
}