X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=Pman%2FRoo.php;h=5cd630ac6585d6610cfe89a482c9bfeac4d9826f;hb=42715c9f80c5d474af25c0b9ac29764501eee2e6;hp=3791534ffdaf1c08fe8e5e44e038c40ac2608bfd;hpb=56e7034f1bb8029046bb6c765eba5873a8f97b94;p=Pman.Base diff --git a/Pman/Roo.php b/Pman/Roo.php index 3791534..5cd630a 100644 --- a/Pman/Roo.php +++ b/Pman/Roo.php @@ -937,10 +937,11 @@ class Pman_Roo extends Pman if ($res === false) { $this->jerr($x->_lastError->toString()); } + $ev = $this->addEvent("ADD", $x); if (method_exists($x, 'onInsert')) { - $x->onInsert($_REQUEST, $this); + $x->onInsert($_REQUEST, $this, $ev); } - $ev = $this->addEvent("ADD", $x); + if ($ev) { $ev->audit($x); }