UpdateDatabase.php
authorEdward <edward@roojs.com>
Wed, 22 May 2013 11:51:18 +0000 (19:51 +0800)
committerEdward <edward@roojs.com>
Wed, 22 May 2013 11:51:18 +0000 (19:51 +0800)
UpdateDatabase.php

index be6d827..d6b411a 100644 (file)
@@ -107,8 +107,8 @@ class Pman_Core_UpdateDatabase extends Pman
            // DB_DataObject::factory('companies')->initCompanies(HTML_Flexyframework::get()->page, $opt['name'], $opt['comptype']);
             $companies = DB_DataObject::factory('companies');
             $companies->setFrom(array(
-                'name' => $name,
-                'comptype' => $type
+                'name' => $opt['name'],
+                'comptype' => $opt['comptype']
             ));
 
             $companies->insert();