This commit is contained in:
Default
2025-04-23 14:59:27 +08:00
parent 7f89da9839
commit a898202a84
3 changed files with 21 additions and 11 deletions

View File

@@ -53,11 +53,13 @@ class ChapterService
$intCacheLifeTime = (int)$arrParams['cache_life'] ?? 0;
$arrFilter = [
'n_id' => $intNId,
'c_page' => 0,
];
$arrFilter['n_id'] = $intNId;
if ($intNId > 0) {
$arrFilter['n_id'] = $intNId;
}
$arrSort = [];