projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
e25e1e0
)
UpdateDatabase.php
author
Edward
<edward@roojs.com>
Mon, 22 Oct 2018 08:54:41 +0000
(16:54 +0800)
committer
Edward
<edward@roojs.com>
Mon, 22 Oct 2018 08:54:41 +0000
(16:54 +0800)
UpdateDatabase.php
patch
|
blob
|
history
diff --git
a/UpdateDatabase.php
b/UpdateDatabase.php
index
f67b5d9
..
54b2027
100644
(file)
--- a/
UpdateDatabase.php
+++ b/
UpdateDatabase.php
@@
-852,13
+852,15
@@
class Pman_Core_UpdateDatabase extends Pman
$ctb = array();
foreach($c->fetchAll('comptype') as $cts) {
$ctb = array();
foreach($c->fetchAll('comptype') as $cts) {
+ if($cts == 'undefined'){
+ continue;
+ }
-
- $ctb[]= array( 'etype'=>'COMPTYPE', 'name' => $cts, 'display_name' => ucfirst(strtolower($cts)));
+ $ctb[]= array( 'etype'=>'COMPTYPE', 'name' => $cts, 'display_name' => ucfirst(strtolower($cts)));
}
}
-
$c = DB_DataObject::Factory('core_enum');
- print_r($ctb);exit;
+ $c = DB_DataObject::Factory('core_enum');
+
$c->initEnums($ctb);
//DB_DataObject::debugLevel(1);
// fix comptypeid
$c->initEnums($ctb);
//DB_DataObject::debugLevel(1);
// fix comptypeid