DataObjects/Person.php
authorAlan Knowles <alan@roojs.com>
Mon, 9 Dec 2013 07:05:34 +0000 (15:05 +0800)
committerAlan Knowles <alan@roojs.com>
Mon, 9 Dec 2013 07:05:34 +0000 (15:05 +0800)
DataObjects/Person.php

index 2b3f323..5b4125b 100644 (file)
@@ -370,7 +370,7 @@ class Pman_Core_DataObjects_Person extends DB_DataObject
         }
                 
              
-        if (empty(   $_SESSION[__CLASS__][$sesPrefix .'-empty'] )) {
+        if (isset(   $_SESSION[__CLASS__][$sesPrefix .'-empty'] ) && $_SESSION[__CLASS__][$sesPrefix .'-empty']  < 1) {
             
             // fake person - open system..
             //$ce = DB_DataObject::factory('core_enum');