Fix SQL error when excluding empty cat. fixes #3598

git-svn-id: https://develop.svn.wordpress.org/trunk@4754 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2007-01-16 22:37:15 +00:00
parent 22f99849eb
commit fb8bd1dbec
1 changed files with 2 additions and 0 deletions

View File

@ -804,6 +804,8 @@ class WP_Query {
}
if ( strlen($out_posts) > 0 )
$out_cats = " AND ID NOT IN ($out_posts)";
else
$out_cats = '';
}
$whichcat = $in_cats . $out_cats;
$groupby = "{$wpdb->posts}.ID";