WIN-2308041133\Administrator 1 день назад
Родитель
Сommit
e0918dbacc
1 измененных файлов с 3 добавлено и 0 удалено
  1. 3 0
      app/system/controller/Forum.php

+ 3 - 0
app/system/controller/Forum.php

@@ -55,6 +55,9 @@ class Forum
                 if (!empty($item['update_time'])) {
                     $item['update_time'] = date('Y-m-d H:i:s', $item['update_time']);
                 }
+                if (!empty($item['images'])) {
+                    $item['images'] = json_decode($item['images'], true) ?: [];
+                }
             }
         }