From 245f114279891b287352f15296ed101afaf76ba9 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Tue, 27 Mar 2012 10:49:55 +0800 Subject: [PATCH] DataObjects/Events.php --- DataObjects/Events.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/DataObjects/Events.php b/DataObjects/Events.php index ec20f8cb..68288261 100644 --- a/DataObjects/Events.php +++ b/DataObjects/Events.php @@ -239,14 +239,15 @@ class Pman_Core_DataObjects_Events extends DB_DataObject $au = $pg->getAuthUser(); if ($ff->cli && empty($au) && isset($obj->person_id)) { - $au = DB_DataObject::Factory('Person'); // not always a person.. - $au->get($obj->person_id); + + // $au = DB_DataObject::Factory('Person'); // not always a person.. + // $au->get($obj->person_id); } $this->person_name = $au && !empty($au->name) ? $au->name : ''; - $this->person_id = $au ? $au->id : ''; + $this->person_id = $au ? $au->id : -1; $this->ipaddr = isset($_SERVER["REMOTE_ADDR"]) ? $_SERVER["REMOTE_ADDR"] : 'cli'; $this->action = $act; $this->on_table = $obj ? $obj->tableName() : ''; -- 2.39.2