Pman/Roo.php
authorChris <chris@roojs.com>
Wed, 20 Jun 2012 08:32:21 +0000 (16:32 +0800)
committerChris <chris@roojs.com>
Wed, 20 Jun 2012 08:32:21 +0000 (16:32 +0800)
Pman/Roo.php

index 2421979..6ef045a 100644 (file)
@@ -829,7 +829,9 @@ class Pman_Roo extends Pman
             $x->setFrom($req);
         }
         $ev = $this->addEvent("EDIT", $x);
-        $ev->audit($x, $old);
+        if ($ev) { 
+            $ev->audit($x, $old);
+        }
         //print_r($x);
         //print_r($old);