projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ead2449
)
DataObjects/Core_templatestr.php
author
leon
<leon@roojs.com>
Wed, 2 Aug 2023 07:07:35 +0000
(15:07 +0800)
committer
leon
<leon@roojs.com>
Wed, 2 Aug 2023 07:07:35 +0000
(15:07 +0800)
DataObjects/Core_templatestr.php
patch
|
blob
|
history
diff --git
a/DataObjects/Core_templatestr.php
b/DataObjects/Core_templatestr.php
index
2c654ca
..
5a6ee62
100644
(file)
--- a/
DataObjects/Core_templatestr.php
+++ b/
DataObjects/Core_templatestr.php
@@
-761,8
+761,9
@@
class Pman_Core_DataObjects_Core_templatestr extends DB_DataObject
$ret = array();
- // avoid duplicate
mdsum
+ // avoid duplicate
(same src_id_mdsum, same on_table, same on_col, but different on_id)
foreach($ar as $v) {
+ if(!empty($ret['on_table']) && !empty($ret['on_id']) && !empty($ret['on_col'])) {
if(!empty($ret[$v['src_id_mdsum']])) {
continue;
}