Category fix from TheJason.

git-svn-id: https://develop.svn.wordpress.org/trunk@746 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Matt Mullenweg 2004-01-09 10:17:28 +00:00
parent d234d8b4c5
commit 6a977ac358
1 changed files with 1 additions and 1 deletions

View File

@ -158,7 +158,7 @@ if ((empty($cat)) || ($cat == 'all') || ($cat == '0')) {
$cat_array = explode(' ',$cat); $cat_array = explode(' ',$cat);
$whichcat .= ' AND (category_id '.$eq.' '.intval($cat_array[0]); $whichcat .= ' AND (category_id '.$eq.' '.intval($cat_array[0]);
for ($i = 1; $i < (count($cat_array)); $i = $i + 1) { for ($i = 1; $i < (count($cat_array)); $i = $i + 1) {
$whichcat .= ' '.$andor.' post_category '.$eq.' '.intval($cat_array[$i]); $whichcat .= ' '.$andor.' category_id '.$eq.' '.intval($cat_array[$i]);
} }
$whichcat .= ')'; $whichcat .= ')';
} }