UpdateDatabase.php
authorAlan Knowles <alan@roojs.com>
Tue, 20 Aug 2013 08:09:54 +0000 (16:09 +0800)
committerAlan Knowles <alan@roojs.com>
Tue, 20 Aug 2013 08:09:54 +0000 (16:09 +0800)
UpdateDatabase.php

index 16046ed..a85894e 100644 (file)
@@ -445,6 +445,7 @@ class Pman_Core_UpdateDatabase extends Pman
         $c = DB_DataObject::Factory('Companies');
         $c->selectAdd();
         $c->selectAdd('distinct(comptype) as comptype');
+        $c->whereAdd("comptype != ''");
         foreach($c->fetchAll('comptype') as $cts) {
            $ctb[0]['cn'][] = array( 'name' => $cts, 'display_name' => ucfirst(strtolower($cts)));