DataObjects/Events.php
authorAlan Knowles <alan@akbkhome.com>
Tue, 27 Mar 2012 02:49:55 +0000 (10:49 +0800)
committerAlan Knowles <alan@akbkhome.com>
Tue, 27 Mar 2012 02:49:55 +0000 (10:49 +0800)
DataObjects/Events.php

index ec20f8c..6828826 100644 (file)
@@ -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() : '';