projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2dacbe4
)
DataObjects/Core_templatestr.php
author
leon
<leon@roojs.com>
Thu, 3 Aug 2023 05:17:25 +0000
(13:17 +0800)
committer
leon
<leon@roojs.com>
Thu, 3 Aug 2023 05:17:25 +0000
(13:17 +0800)
DataObjects/Core_templatestr.php
patch
|
blob
|
history
diff --git
a/DataObjects/Core_templatestr.php
b/DataObjects/Core_templatestr.php
index
3d3eeeb
..
bf64b48
100644
(file)
--- a/
DataObjects/Core_templatestr.php
+++ b/
DataObjects/Core_templatestr.php
@@
-95,11
+95,13
@@
class Pman_Core_DataObjects_Core_templatestr extends DB_DataObject
return;
}
$cols = $ff['DataObjects_Core_templatestr']['tables'][$tn];
-
- $unused = array();
- $used = array();
foreach($cols as $c) {
+
+ // skip if empty string
+ if(empty($obj->$c)) {
+ continue;
+ }
if(strpos($c, ',') !== false) {
$arr = explode(',', $c);