projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
999242d
)
Changed DataObjects/Core_templatestr.php
author
leon
<leon@roojs.com>
Wed, 13 Sep 2023 09:06:31 +0000
(17:06 +0800)
committer
leon
<leon@roojs.com>
Wed, 13 Sep 2023 09:06:31 +0000
(17:06 +0800)
DataObjects/Core_templatestr.php
patch
|
blob
|
history
diff --git
a/DataObjects/Core_templatestr.php
b/DataObjects/Core_templatestr.php
index
a800750
..
292a063
100644
(file)
--- a/
DataObjects/Core_templatestr.php
+++ b/
DataObjects/Core_templatestr.php
@@
-136,6
+136,9
@@
class Pman_Core_DataObjects_Core_templatestr extends DB_DataObject
$x->mdsum = md5($obj->$c);
$x->template_id = 0;
$x->updated = date('Y-m-d H:i:s', strtotime("NOW"));
+ if($up) {
+ $used[] = $x->id;
+ }
$up ? $x->update() : $x->insert();
}