1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-08 23:56:58 +02:00

Bbcode code optimization and test.

This commit is contained in:
Cameron
2020-12-15 08:59:31 -08:00
parent 44e260b121
commit f80d611202
10 changed files with 378 additions and 256 deletions

View File

@@ -176,7 +176,7 @@ class receiveMail
{
$body = $this->get_part($this->marubox, $mid, "TEXT/HTML");
}
if (($body == "") || $mode == 'plain')
if (empty($body) || $mode == 'plain')
$body = $this->get_part($this->marubox, $mid, "TEXT/PLAIN");
if ($body == "") {
return "";