Make WordPress Core

Changeset 4754


Ignore:
Timestamp:
01/16/2007 10:37:15 PM (17 years ago)
Author:
ryan
Message:

Fix SQL error when excluding empty cat. fixes #3598

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/query.php

    r4634 r4754  
    805805                if ( strlen($out_posts) > 0 )
    806806                    $out_cats = " AND ID NOT IN ($out_posts)";
     807                else
     808                    $out_cats = '';
    807809            }
    808810            $whichcat = $in_cats . $out_cats;
Note: See TracChangeset for help on using the changeset viewer.