Category fix from TheJason.

git-svn-id: http://svn.automattic.com/wordpress/trunk@746 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
saxmatt 2004-01-09 10:17:28 +00:00
parent a43684fd01
commit 8a5c380f95
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);
$whichcat .= ' AND (category_id '.$eq.' '.intval($cat_array[0]);
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 .= ')';
}