Skip to content

Commit

Permalink
Correctly initializes Board::$info->cat from cached data
Browse files Browse the repository at this point in the history
Signed-off-by: Jon Stovell <[email protected]>
  • Loading branch information
Sesquipedalian committed Nov 25, 2023
1 parent e720cce commit 071f9d1
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 071f9d1

Please sign in to comment.