Closed (fixed)
Project:
SQL Search (Trip Search)
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
1 Aug 2005 at 23:27 UTC
Updated:
15 Sep 2005 at 19:43 UTC
I just installed trip_search and I think it is great!!
However, when I went to the advanced search I was getting an errorr "warning: Invalid argument supplied for foreach() in /var/www/cbi/drupal/includes/tablesort.inc on line 160."
I tracked it down to line 384 of trip_search.module (v. 1.30):
$group = theme('table', '', $rows);
At least in my version of theme.inc you can't pass a null string for arg 1 ($headers).
I fixed it by passing an empty array:
$blank[] = array();
$group = theme('table', '$blank', $rows);It seems to work. Was this left blank for a reason? Am I missing something?
Great module. Thanks.
Comments
Comment #1
JoranLawrence commentedoops... I meant I fixed it with this:
Comment #2
nedjoNow fixed.
Comment #3
(not verified) commentedComment #4
pem commented