Skip to content

Commit

Permalink
Merge pull request #7905 from Sesquipedalian/category_init_from_cache
Browse files Browse the repository at this point in the history
Correctly initializes Board::$info->cat from cached data
  • Loading branch information
Sesquipedalian authored Nov 25, 2023
2 parents cb5b1d4 + 071f9d1 commit 88ef4a0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Sources/Board.php
Original file line number Diff line number Diff line change
Expand Up @@ -2476,7 +2476,11 @@ protected function loadBoardInfo(): void

if (!empty($temp)) {
foreach ($temp as $key => $value) {
$this->{$key} = $value;
if ($key === 'cat') {
$this->{$key} = Category::init($value['id'], $value);
} else {
$this->{$key} = $value;
}
}

self::$board_id = $this->id;
Expand Down

0 comments on commit 88ef4a0

Please sign in to comment.