diff --git a/webui/model/search/message.php b/webui/model/search/message.php index 83209ee9..f9d9efd3 100644 --- a/webui/model/search/message.php +++ b/webui/model/search/message.php @@ -115,7 +115,7 @@ class ModelSearchMessage extends Model { } } - $msg = substr($msg, 0, strlen($msg) - strlen($boundary) - 6); + if($boundary) { $msg = substr($msg, 0, strlen($msg) - strlen($boundary) - 6); } }