DataObjects/Person.php
authorAlan Knowles <alan@roojs.com>
Wed, 25 Feb 2015 05:39:54 +0000 (13:39 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 25 Feb 2015 05:39:54 +0000 (13:39 +0800)
DataObjects/Person.php

index 82229a0..998cfb0 100644 (file)
@@ -279,7 +279,7 @@ class Pman_Core_DataObjects_Person extends DB_DataObject
             unset($_SESSION[get_class($this)][$sesPrefix .'-auth']);
             
         }
-        if (get_class($this) != __CLASS__) {
+        if (!strcasecmp(get_class($this) , __CLASS__)) {
             return false;
         }
         
@@ -380,11 +380,12 @@ class Pman_Core_DataObjects_Person extends DB_DataObject
             }
             unset($_SESSION[get_class($this)][$sesPrefix .'-auth']);
         }
-        if (get_class($this) != __CLASS__) {
+        if (!strcasecmp(get_class($this) , __CLASS__)) {
             return false;
         }
         
         
+        
         if (empty(   $_SESSION[get_class($this)][$sesPrefix .'-empty'] )) {
             $u = DB_DataObject::factory('Person');
             $u->whereAdd(' LENGTH(passwd) > 0');