DataObjects/Core_person.php
authorjohn <john@roojs.com>
Tue, 9 Oct 2018 11:05:42 +0000 (19:05 +0800)
committerjohn <john@roojs.com>
Tue, 9 Oct 2018 11:05:42 +0000 (19:05 +0800)
DataObjects/Core_person.php

index 3104bdf..99891c9 100644 (file)
@@ -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');
             }