mirror of
https://github.com/Anvilcraft/jensmemes
synced 2024-11-22 02:43:58 +01:00
Update memecat.php
This commit is contained in:
parent
246feef307
commit
38de26210a
1 changed files with 2 additions and 4 deletions
|
@ -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 '<option value="'.$cate->id.'" selected>'.$cate->name.'</option>';
|
||||
$c=1;
|
||||
|
|
Loading…
Reference in a new issue