Skip to content

Commit

Permalink
Rendering Error in layout User/Item: count(): Argument #1 ($value) must
Browse files Browse the repository at this point in the history
be of type Countable|array, int given in .../Model/TopicsModel.php on
line 657
  • Loading branch information
xillibit committed Mar 21, 2024
1 parent f232018 commit af7dbb2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/site/src/Model/TopicsModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -654,11 +654,11 @@ protected function populateState($ordering = null, $direction = null)
$latestCategory = $klatestCategory;
} elseif ($latestCategoryIn && !$klatestContext) {
// Check if it selected show all, else show only the category(ies) selected in the list are showed
if (count($latestCategory) == 1) {
if ($latestCategory[0] == 0) {
$latestCategory = false;
} else {
$latestCategory = $latestCategory;
if (is_array($latestCategory)) {
if (count($latestCategory) == 1) {
if ($latestCategory[0] == 0) {
$latestCategory = false;
}
}
}

Expand Down

0 comments on commit af7dbb2

Please sign in to comment.