Fix SQL error when excluding empty cat. fixes #3598

git-svn-id: http://svn.automattic.com/wordpress/trunk@4754 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2007-01-16 22:37:15 +00:00
parent 614fecf492
commit a78920e6b9
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";