From 5ecd4b7299c54ad2058e2ac2242c66b9a8525e5b Mon Sep 17 00:00:00 2001 From: SJ Date: Sat, 25 Aug 2012 15:01:19 +0200 Subject: [PATCH] fixed a bug with messages without encoding --- webui/model/search/message.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webui/model/search/message.php b/webui/model/search/message.php index cd49eb4c..6b9298e6 100644 --- a/webui/model/search/message.php +++ b/webui/model/search/message.php @@ -223,7 +223,7 @@ class ModelSearchMessage extends Model { $chunk = base64_decode($chunk); } - if(!preg_match("/utf-8/i", $charset)){ + if($charset && !preg_match("/utf-8/i", $charset)){ $chunk = iconv($charset, 'utf-8', $chunk); }