projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4bdb6e6
)
DataObjects/Core_person.php
author
john
<john@roojs.com>
Tue, 9 Oct 2018 11:05:42 +0000
(19:05 +0800)
committer
john
<john@roojs.com>
Tue, 9 Oct 2018 11:05:42 +0000
(19:05 +0800)
DataObjects/Core_person.php
patch
|
blob
|
history
diff --git
a/DataObjects/Core_person.php
b/DataObjects/Core_person.php
index
3104bdf
..
99891c9
100644
(file)
--- a/
DataObjects/Core_person.php
+++ b/
DataObjects/Core_person.php
@@
-821,12
+821,11
@@
class Pman_Core_DataObjects_Core_person extends DB_DataObject
$person = $this->getAuthUser();
- if(!empty($q['id']) {
- $person =
+ if(!empty($q['id'])) {
+ $person = DB_DataObject::factory('core_person');
+ $person->get($q['id']);
}
-
-
if(empty($person)) {
$roo->jerr('Please login to the system');
}