Pman/Login.php
authorjohn <john@roojs.com>
Thu, 14 Jun 2018 05:47:22 +0000 (13:47 +0800)
committerjohn <john@roojs.com>
Thu, 14 Jun 2018 05:47:22 +0000 (13:47 +0800)
Pman/Login.php

index c292e12..6997827 100644 (file)
@@ -60,8 +60,9 @@ class Pman_Login extends Pman
         }
         
         if(!empty($_REQUEST['check_owner_company'])) {
-            return $this->getOwnerCompany();
-            exit;
+            $core_company = DB_DataObject::factory('core_company');
+            $core_company->comptype = 'OWNER';
+            return $core_company->count();
         }
         
         // might be an idea to disable this?!?