WIN-2308041133\Administrator 3 tygodni temu
rodzic
commit
e0918dbacc
1 zmienionych plików z 3 dodań i 0 usunięć
  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) ?: [];
+                }
             }
         }