fixed a bug with messages without encoding

This commit is contained in:
SJ 2012-08-25 15:01:19 +02:00
parent 6a522be88e
commit 5ecd4b7299

View File

@ -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);
}