Changeset 2821

Show
Ignore:
Timestamp:
11/18/08 00:48:50 (7 weeks ago)
Author:
caius
Message:

Changing an SQL call. Thanks arthus for the patch.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/htdocs/system/classes/comments.php

    r2742 r2821  
    7777                        $paramset['status'] = array_diff( $paramset['status'], array( 'any' ) ); 
    7878                        array_walk( $paramset['status'], create_function( '&$a,$b', '$a = Comment::status( $a );' ) ); 
    79                         $where[] = "type IN (" . Utils::placeholder_string( count( $paramset['status'] ) ) . ")"; 
     79                        $where[] = "status IN (" . Utils::placeholder_string( count( $paramset['status'] ) ) . ")"; 
    8080                        $params = array_merge( $params, $paramset['status'] ); 
    8181                    }