DataObjects/Person.php
authorAlan Knowles <alan@roojs.com>
Thu, 26 Feb 2015 07:32:04 +0000 (15:32 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 26 Feb 2015 07:32:04 +0000 (15:32 +0800)
DataObjects/Person.php

index 89a6f3a..4e598b4 100644 (file)
@@ -279,7 +279,7 @@ class Pman_Core_DataObjects_Person extends DB_DataObject
             unset($_SESSION[get_class($this)][$sesPrefix .'-auth']);
             
         }
-        if (!strcasecmp(get_class($this) , __CLASS__)) {
+        if (!$this->canInitializeSystem()) {
             return false;
         }
         
@@ -386,7 +386,7 @@ class Pman_Core_DataObjects_Person extends DB_DataObject
             }
             unset($_SESSION[get_class($this)][$sesPrefix .'-auth']);
         }
-        if (!strcasecmp(get_class($this) , __CLASS__)) {
+        if (!$this->canInitializeSystem()) {
             return false;
         }