DataObjects/Person.php
authorEdward <edward@roojs.com>
Mon, 15 Sep 2014 03:08:50 +0000 (11:08 +0800)
committerEdward <edward@roojs.com>
Mon, 15 Sep 2014 03:08:50 +0000 (11:08 +0800)
DataObjects/Person.php

index e83961d..a725329 100644 (file)
@@ -1064,6 +1064,6 @@ class Pman_Core_DataObjects_Person extends DB_DataObject
     {
         $company = $this->company();
         
-        return (empty($company) || empty($company->comptype) || empty($company->comptype !== 'OWNER')) ? false : true;
+        return (empty($company) || empty($company->comptype) || $company->comptype != 'OWNER') ? false : true;
     }
  }