make sure all possible return values that are passed by xajax to ajaxfelamimail are treated correct when calling sendNotify

This commit is contained in:
Klaus Leithoff 2010-05-21 11:50:54 +00:00
parent c749c71216
commit d7befada9c

View File

@ -411,7 +411,7 @@
function sendNotify ($_uid, $_ret) function sendNotify ($_uid, $_ret)
{ {
$response = new xajaxResponse(); $response = new xajaxResponse();
if ($_ret==='true') { if ($_ret==='true' || $_ret===1 || $_ret == "1,") {
if ( $this->bofelamimail->sendMDN($_uid) ) if ( $this->bofelamimail->sendMDN($_uid) )
$this->bofelamimail->flagMessages("mdnsent",array($_uid)); $this->bofelamimail->flagMessages("mdnsent",array($_uid));
} else { } else {