projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8ae8357
)
DataObjects/Person.php
author
Alan Knowles
<alan@akbkhome.com>
Thu, 21 Mar 2013 06:55:22 +0000
(14:55 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Thu, 21 Mar 2013 06:55:22 +0000
(14:55 +0800)
DataObjects/Person.php
patch
|
blob
|
history
diff --git
a/DataObjects/Person.php
b/DataObjects/Person.php
index
faf18b6
..
11c1e2c
100644
(file)
--- a/
DataObjects/Person.php
+++ b/
DataObjects/Person.php
@@
-270,13
+270,15
@@
class Pman_Core_DataObjects_Person extends DB_DataObject
return true;
}
-
-
+ if (!empty( $_SESSION[__CLASS__][$sesPrefix .'-empty'] )) {
+ return false;
+ }
// not in session or not matched...
$u = DB_DataObject::factory('Person');
$u->whereAdd(' LENGTH(passwd) > 0');
$n = $u->count();
+ $_SESSION[__CLASS__][$sesPrefix .'-empty'] = $n;
$error = PEAR::getStaticProperty('DB_DataObject','lastError');
if ($error) {
die($error->toString()); // not really a good thing to do...