Skip to content

Commit

Permalink
Merge pull request #31460 from OPEN-DSI/18.0_fix_return_hook_sendmail
Browse files Browse the repository at this point in the history
FIX: Fix return value of hook sendMail when hook return -1 who must be return false in sendfile() function
  • Loading branch information
eldy authored Jan 20, 2025
2 parents 1fa3b63 + 87c1649 commit 9f4692e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion htdocs/core/class/CMailFile.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -686,7 +686,7 @@ public function sendfile()
$this->error = "Error in hook maildao sendMail ".$reshook;
dol_syslog("CMailFile::sendfile: mail end error=".$this->error, LOG_ERR);

return $reshook;
return false;
}
if ($reshook == 1) { // Hook replace standard code
return true;
Expand Down

0 comments on commit 9f4692e

Please sign in to comment.