Skip to content

Commit

Permalink
bug
Browse files Browse the repository at this point in the history
  • Loading branch information
star7th committed Jul 29, 2024
1 parent 8487368 commit f59c29a
Showing 1 changed file with 17 additions and 7 deletions.
24 changes: 17 additions & 7 deletions server/Application/Api/Controller/ExportController.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,23 @@ public function word()
if ($cat_id == $value2['cat_id']) {
$pages = $value2['pages'];
$catalogs = $value2['catalogs'];
}
}
if ($value2['catalogs']) {
foreach ($value2['catalogs'] as $key3 => $value3) {
if ($cat_id == $value3['cat_id']) {
$pages = $value3['pages'];
$catalogs = $value3['catalogs'];
} else {
if ($value2['catalogs']) {
foreach ($value2['catalogs'] as $key3 => $value3) {
if ($cat_id == $value3['cat_id']) {
$pages = $value3['pages'];
$catalogs = $value3['catalogs'];
} else {
if ($value3['catalogs']) {
foreach ($value3['catalogs'] as $key4 => $value4) {
if ($cat_id == $value4['cat_id']) {
$pages = $value4['pages'];
$catalogs = $value4['catalogs'];
}
}
}
}
}
}
}
}
Expand Down

0 comments on commit f59c29a

Please sign in to comment.