EventView.php
authorAlan Knowles <alan@roojs.com>
Tue, 9 Oct 2018 07:11:06 +0000 (15:11 +0800)
committerAlan Knowles <alan@roojs.com>
Tue, 9 Oct 2018 07:11:06 +0000 (15:11 +0800)
EventView.php

index 3df1549..0eab0a5 100644 (file)
@@ -43,9 +43,10 @@ class Pman_Admin_EventView extends Pman
         // core_event_audit
         // the event file..
         $d= DB_DataObject::factory('core_event_audit');
+        $d->event_id = $ev->id; // we can set that as the above returns error or dataobject..
         if (is_a($d,'DB_DataObject') && $d->count()) {
             echo "<H2>Changed Data:</H2>";
-            $d->event_id = $ev->id;
+            
             foreach($d->fetchAll() as $d) {
                 echo "{$d->name} SET TO: " . htmlspecialchars($d->newvalue) . "<br/>\n";
             }