...
|
...
|
@@ -834,6 +834,13 @@ class Home extends Base { |
|
|
$body = db()->first(bodySql::first($id));
|
|
|
if($body){
|
|
|
$data['body'] = json_decode($body['text_html'],true);
|
|
|
if(count($data['body']) == 1){
|
|
|
if(count($data['body'][0])==1){
|
|
|
if(isset($data['body'][0]['body'])){
|
|
|
$data['body'][0]['type'] = 'text/html';
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
$charset = 'utf-8';
|
|
|
$htmlbody = '';
|
|
|
foreach ($data['body'] as $bd){
|
...
|
...
|
|