From: KH Lau Date: Fri, 27 Oct 2017 09:10:35 +0000 (+0800) Subject: DataObjects/Events.php X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=commitdiff_plain;h=2f28afcb4752536d6e5bce60853435695582fae7 DataObjects/Events.php --- diff --git a/DataObjects/Events.php b/DataObjects/Events.php index ec2e1aa5..d5162677 100644 --- a/DataObjects/Events.php +++ b/DataObjects/Events.php @@ -333,19 +333,7 @@ class Pman_Core_DataObjects_Events extends DB_DataObject $cols = $this->tableColumns(); $col = isset($cols[$col]) ? $col : 'person_id'; // for BC.... - revert to using person_id $this->{$col} = $au->pid(); - //$this->person_id = $au ? (!empty($au->id) ? $au->id : $au->pid()) : -1; - - $this->who = $au->name; - - if($au->tableName() == "modx_users"){ - $e = PDO_DataObject::factory('ext_data'); - $e->setFrom(array( - 'userdata_id' => $au->pid(), - )); - if($e->find(true)){ - $this->who = $e->getUserName(); - } - } + //$this->person_id = $au ? (!empty($au->id) ? $au->id : $au->pid()) : -1; } $this->person_table = $au ? $au->tableName() : ''; $this->ipaddr = isset($_SERVER["REMOTE_ADDR"]) ? $_SERVER["REMOTE_ADDR"] : 'cli';