X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=NotifySend.php;fp=NotifySend.php;h=410aa64cad3ec497aa4024ef6c5ec0f527b46437;hb=44d8e6d3b05916ccd5c31a3428266c7ea25e3b87;hp=7fcf583fc773b8fe15c3f3fee84fa7040bcc6d81;hpb=5db6d1843162c89f9e000110251b1fd2d44350b8;p=Pman.Core diff --git a/NotifySend.php b/NotifySend.php index 7fcf583f..410aa64c 100644 --- a/NotifySend.php +++ b/NotifySend.php @@ -135,6 +135,19 @@ class Pman_Core_NotifySend extends Pman $this->errorHandler("message has been sent already.\n"); } + // we have a bug with msgid not getting filled. + $cev = DB_DataObject::Factory('Events'); + $cev->on_table = $this->table; + $cev->on_id = $w->id; + $cev->action = 'NOTIFYSENT'; + $cev->limit(1); + if ($cev->count()) { + $cev->find(true); + $w->flagDone($cev, 'alreadysent'); + $this->errorHandler( "SENT (fix old) ". $cev->remarks); + } + + $o = $w->object(); if ($o === false) {