From 38c6e7abb54e2ef199ef0ccbba3157131821480d Mon Sep 17 00:00:00 2001 From: xiaomlove Date: Sun, 6 Nov 2022 04:35:20 +0800 Subject: [PATCH] fix usercp page + torrents page int % string error --- public/getrss.php | 6 +++--- public/usercp.php | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/public/getrss.php b/public/getrss.php index c76f095e..4dab62f6 100644 --- a/public/getrss.php +++ b/public/getrss.php @@ -17,9 +17,9 @@ $showstandard = (get_searchbox_value($brsectiontype, 'showstandard') || ($allows $showprocessing = (get_searchbox_value($brsectiontype, 'showprocessing') || ($allowspecial && get_searchbox_value($spsectiontype, 'showprocessing'))); //whether show processings or not $showteam = (get_searchbox_value($brsectiontype, 'showteam') || ($allowspecial && get_searchbox_value($spsectiontype, 'showteam'))); //whether show teams or not $showaudiocodec = (get_searchbox_value($brsectiontype, 'showaudiocodec') || ($allowspecial && get_searchbox_value($spsectiontype, 'showaudiocodec'))); //whether show audio codecs or not -$brcatsperror = get_searchbox_value($brsectiontype, 'catsperrow'); -$catsperrow = get_searchbox_value($spsectiontype, 'catsperrow'); -$catsperrow = (!$allowspecial ? $brcatsperror : ($catsperrow > $catsperrow ? $catsperrow : $catsperrow)); //show how many cats per line +$brcatsperror = (int)get_searchbox_value($brsectiontype, 'catsperrow'); +$catsperrow = (int)get_searchbox_value($spsectiontype, 'catsperrow'); +$catsperrow = !$allowspecial ? $brcatsperror : $catsperrow; //show how many cats per line $brcatpadding = get_searchbox_value($brsectiontype, 'catpadding'); $spcatpadding = get_searchbox_value($spsectiontype, 'catpadding'); diff --git a/public/usercp.php b/public/usercp.php index 813120da..b3902fba 100644 --- a/public/usercp.php +++ b/public/usercp.php @@ -375,9 +375,9 @@ $showstandard = (get_searchbox_value($brsectiontype, 'showstandard') || ($allows $showprocessing = (get_searchbox_value($brsectiontype, 'showprocessing') || ($allowspecial && get_searchbox_value($spsectiontype, 'showprocessing'))); //whether show processings or not $showteam = (get_searchbox_value($brsectiontype, 'showteam') || ($allowspecial && get_searchbox_value($spsectiontype, 'showteam'))); //whether show teams or not $showaudiocodec = (get_searchbox_value($brsectiontype, 'showaudiocodec') || ($allowspecial && get_searchbox_value($spsectiontype, 'showaudiocodec'))); //whether show audio codecs or not -$brcatsperror = get_searchbox_value($brsectiontype, 'catsperrow'); -$catsperrow = get_searchbox_value($spsectiontype, 'catsperrow'); -$catsperrow = (!$allowspecial ? $brcatsperror : ($catsperrow > $catsperrow ? $catsperrow : $catsperrow)); //show how many cats per line +$brcatsperror = (int)get_searchbox_value($brsectiontype, 'catsperrow'); +$catsperrow = (int)get_searchbox_value($spsectiontype, 'catsperrow'); +$catsperrow = !$allowspecial ? $brcatsperror : $catsperrow; //show how many cats per line $brcatpadding = get_searchbox_value($brsectiontype, 'catpadding'); $spcatpadding = get_searchbox_value($spsectiontype, 'catpadding');