Skip to content
Permalink
Browse files

Revert "Fix PHP-7.4 Issue "

This reverts commit ea25f5b.
  • Loading branch information
plegall committed Mar 25, 2020
1 parent d3879b1 commit 8a5a2d98313f5aede9ce350b31fc526d124bb505
Showing with 3 additions and 5 deletions.
  1. +3 −5 include/functions_category.inc.php
@@ -103,8 +103,6 @@ function get_categories_menu()
$result = pwg_query($query);
$cats = array();
$selected_category = isset($page['category']) ? $page['category'] : null;
$selected_category_id = isset($selected_category['id']) ? $selected_category['id'] : null;
$selected_category_id_uppercat = isset($selected_category['id_uppercat']) ? $selected_category['id_uppercat'] : null;
while ($row = pwg_db_fetch_assoc($result))
{
$child_date_last = @$row['max_date_last']> @$row['date_last'];
@@ -124,8 +122,8 @@ function get_categories_menu()
),
'URL' => make_index_url(array('category' => $row)),
'LEVEL' => substr_count($row['global_rank'], '.') + 1,
'SELECTED' => $selected_category_id == $row['id'] ? true : false,
'IS_UPPERCAT' => $selected_category_id_uppercat == $row['id'] ? true : false,
'SELECTED' => $selected_category['id'] == $row['id'] ? true : false,
'IS_UPPERCAT' => $selected_category['id_uppercat'] == $row['id'] ? true : false,
)
);
if ($conf['index_new_icon'])
@@ -604,4 +602,4 @@ function remove_computed_category(&$cats, $cat)
unset($cats[$cat['cat_id']]);
}

?>
?>

0 comments on commit 8a5a2d9

Please sign in to comment.
You can’t perform that action at this time.