mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-12-25 07:10:12 +01:00
fixed a bug with messages without encoding
This commit is contained in:
parent
6a522be88e
commit
5ecd4b7299
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user