Skip to content

Commit

Permalink
Fixed fatal error, closes #1656 (#1657)
Browse files Browse the repository at this point in the history
  • Loading branch information
thorsten committed Mar 4, 2020
1 parent d1a2774 commit fe60f5f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion phpmyfaq/admin/category.main.php
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@
}

// Category is shown on start page
if ($cat['show_home']) {
if (isset($cat['show_home'])) {
$categoryName .= ' <i class="fa fa-star"></i>';
}

Expand Down
4 changes: 2 additions & 2 deletions phpmyfaq/src/phpMyFAQ/Category.php
Original file line number Diff line number Diff line change
Expand Up @@ -285,12 +285,12 @@ public function setUser($userId = -1)
/**
* Gets the main categories and write them in an array.
*
* @param array $categories Array of parent category ids
* @param string $categories String of parent category ids
* @param bool $parentId Only top level categories?
*
* @return array
*/
public function getCategories(array $categories, bool $parentId = true): array
public function getCategories(string $categories, bool $parentId = true): array
{
$_query = '';
$query = sprintf(
Expand Down

0 comments on commit fe60f5f

Please sign in to comment.