Added additionalwhere option (it was already documented) to custom search API
authorDan
Sat, 29 Nov 2008 22:44:40 -0500
changeset 758 6b79a49f85f0
parent 757 7ba7b85e1195
child 759 6e2671261802
Added additionalwhere option (it was already documented) to custom search API
includes/search.php
--- 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)) )