Make WordPress Core

Changeset 404 for trunk/blog.header.php


Ignore:
Timestamp:
10/02/2003 01:56:14 PM (23 years ago)
Author:
emc3
Message:

Fixed logic error when selecting posts by multiple author ids

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/blog.header.php

    r403 r404  
    159159        }
    160160        $author_array = explode(' ', $author);
    161         $whichauthor .= ' AND post_author '.$eq.' '.intval($author_array[0]);
     161        $whichauthor .= ' AND (post_author '.$eq.' '.intval($author_array[0]);
    162162        for ($i = 1; $i < (count($author_array)); $i = $i + 1) {
    163163                $whichauthor .= ' '.$andor.' post_author '.$eq.' '.intval($author_array[$i]);
    164164        }
     165        $whichauthor .= ')';
    165166}
    166167
Note: See TracChangeset for help on using the changeset viewer.