projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7b951f2
)
UpdateDatabase.php
author
Alan Knowles
<alan@roojs.com>
Tue, 20 Aug 2013 08:11:43 +0000
(16:11 +0800)
committer
Alan Knowles
<alan@roojs.com>
Tue, 20 Aug 2013 08:11:43 +0000
(16:11 +0800)
UpdateDatabase.php
patch
|
blob
|
history
diff --git
a/UpdateDatabase.php
b/UpdateDatabase.php
index
d404cdc
..
9ec08a9
100644
(file)
--- a/
UpdateDatabase.php
+++ b/
UpdateDatabase.php
@@
-446,8
+446,13
@@
class Pman_Core_UpdateDatabase extends Pman
$c->selectAdd();
$c->selectAdd('distinct(comptype) as comptype');
$c->whereAdd("comptype != ''");
+
+ $ctb = array();
foreach($c->fetchAll('comptype') as $cts) {
- $ctb[0][0]['cn'][] = array( 'name' => $cts, 'display_name' => ucfirst(strtolower($cts)));
+
+
+
+ $ctb[]= array( 'etype'=>'COMPTYPE', 'name' => $cts, 'display_name' => ucfirst(strtolower($cts)));
}