projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
25d8b00
)
DataObjects/Core_templatestr.php
author
leon
<leon@roojs.com>
Thu, 3 Aug 2023 05:09:54 +0000
(13:09 +0800)
committer
leon
<leon@roojs.com>
Thu, 3 Aug 2023 05:09:54 +0000
(13:09 +0800)
DataObjects/Core_templatestr.php
patch
|
blob
|
history
diff --git
a/DataObjects/Core_templatestr.php
b/DataObjects/Core_templatestr.php
index
4b75f0d
..
3d3eeeb
100644
(file)
--- a/
DataObjects/Core_templatestr.php
+++ b/
DataObjects/Core_templatestr.php
@@
-97,7
+97,7
@@
class Pman_Core_DataObjects_Core_templatestr extends DB_DataObject
$cols = $ff['DataObjects_Core_templatestr']['tables'][$tn];
$unused = array();
- $
active
= array();
+ $
used
= array();
foreach($cols as $c) {
@@
-134,7
+134,7
@@
class Pman_Core_DataObjects_Core_templatestr extends DB_DataObject
}
// activate non-empty words
else {
- $
active
[] = $x->id;
+ $
used
[] = $x->id;
}
if($x->txt == $obj->$c) {
@@
-174,7
+174,7
@@
class Pman_Core_DataObjects_Core_templatestr extends DB_DataObject
");
}
- if(count($
active
)) {
+ if(count($
used
)) {
$t = DB_DataObject::factory($this->tableName());
// activate the aprent data
$t->query("UPDATE core_templatestr