}
-
-
- $u = DB_DataObject::factory('Person');
- $u->whereAdd(' LENGTH(passwd) > 0');
- if (!$u->count()){
+ if (empty( $_SESSION[__CLASS__][$sesPrefix .'-empty'] )) {
+ $u = DB_DataObject::factory('Person');
+ $u->whereAdd(' LENGTH(passwd) > 0');
+ $_SESSION[__CLASS__][$sesPrefix .'-empty'] = $u->count();
+ }
+
+
+ if (empty( $_SESSION[__CLASS__][$sesPrefix .'-empty'] )) {
// fake person - open system..
//$ce = DB_DataObject::factory('core_enum');