alanj23 Posted May 10, 2007 Share Posted May 10, 2007 Hi, when I search for a category with a one word title (ie car) search works fine, however when I search for a category with a 2 word title (ie bikes & Boats) i get the following error Warning: array_unique(): The argument should be an array in /hsphere/local/home/store/templates/content/advanced_search_result.tpl.php on line 204 any suggestions? Thanks in advance :) Link to comment Share on other sites More sharing options...
alanj23 Posted May 10, 2007 Author Share Posted May 10, 2007 Almost forgot heres the code from my advanced search lines 197 -206 $listing_sql = $select_str . $from_str . $where_str . $order_str; $listing_query = tep_db_query($listing_sql); while ($listing = tep_db_fetch_array($listing_query)) { $categories[] = $listing['categories_id']; $prod_sear_id[] = $listing['products_id']; } $categories_dedou = array_unique($categories); require(DIR_WS_MODULES . FILENAME_PRODUCT_LISTING); thanks again Link to comment Share on other sites More sharing options...
oschellas Posted May 10, 2007 Share Posted May 10, 2007 Hard to tell since the coding is not stock osc and we don't have an example. It would be better to contact the template provider about the error. A quick solution that might work would be to replace array_unique by array in this file... Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.