changeset 758 | 6b79a49f85f0 |
parent 757 | 7ba7b85e1195 |
child 801 | eb8b23f11744 |
--- a/includes/search.php Sat Nov 29 00:38:35 2008 -0500 +++ b/includes/search.php Sat Nov 29 22:44:40 2008 -0500 @@ -1002,6 +1002,8 @@ if ( isset($options['additionalcolumns']) ) $columns .= ', ' . implode(', ', $options['additionalcolumns']); + $additionalwhere = ( isset($options['additionalwhere']) ) ? $options['additionalwhere'] : ''; + $sql = "SELECT $columns FROM " . table_prefix . "{$options['table']} WHERE ( $where ) $additionalwhere;"; if ( !($q = $db->sql_unbuffered_query($sql)) )