Skip to content

Commit

Permalink
FIX: Fix return value of hook sendMail when hook return -1 who must b…
Browse files Browse the repository at this point in the history
…e return false in sendfile() function
  • Loading branch information
kkhelifa-opendsi committed Oct 18, 2024
1 parent 35f3a4f commit 87c1649
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 @@ -687,7 +687,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 87c1649

Please sign in to comment.