clear icon cache after modify

This commit is contained in:
xiaomlove
2023-02-06 14:25:05 +08:00
parent 23ea393ffe
commit 59b7a2916e
12 changed files with 35 additions and 13 deletions

View File

@@ -75,7 +75,7 @@ class Torrent
$ptGen = new PTGen();
}
$ptGenInfo = $torrentInfo['pt_gen'];
if (!is_array($torrentInfo['pt_gen'])) {
if (!is_array($torrentInfo['pt_gen']) && is_string($torrentInfo['pt_gen'])) {
$ptGenInfo = json_decode($ptGenInfo, true);
}