From 38de26210aab1ec5400cffe1bd40e2c75ef4dd37 Mon Sep 17 00:00:00 2001 From: ITbyHF <61453797+ITbyHF@users.noreply.github.com> Date: Wed, 2 Sep 2020 23:09:39 +0200 Subject: [PATCH] Update memecat.php --- website/incl/memecat.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/website/incl/memecat.php b/website/incl/memecat.php index 3a89c18..14acce8 100644 --- a/website/incl/memecat.php +++ b/website/incl/memecat.php @@ -31,9 +31,8 @@ foreach ($cats as $cate){ '; foreach ($cats as $catdis) { - if($catdis->name!=$cate->name){ - $cat_dis = str_replace(" ", '_', $catdis->name); - echo '$("#'.$cat_dis.'").hide();'; + if($catdis->id!=$cate->id){ + echo '$("#'.$catdis->name.'").hide();'; } } echo ' @@ -58,7 +57,6 @@ echo ' global $cats; $c = 0; foreach ($cats as $cate) { - $cate->id = str_replace(' ', '_', $cate->name); if($c==0){ echo ''; $c=1;