$title being empty, when t($title), returns a big array,
so the search results has as a title 'Array'
also maybe tt() should be used if translating variable.
For now, made a quick fix.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | google_appliance_t.patch | 619 bytes | coderintherye |
| google_appliance_array.patch | 617 bytes | aufumy |
Comments
Comment #1
coderintherye commented+1 For this. I was also getting this error. The proper way to use t is to escape the variables, as shown at http://api.drupal.org/api/drupal/includes--common.inc/function/t/6
So here is a patch which does that.
Comment #2
coderintherye commentedOn a side note, the reason I saw "array" was because $title was getting passed as NULL. Presumably from:
Might be nice to add into the theme function that if $title is NULL to set it to 'Search results'. This is in the function declaration, but you have already declared it as NULL prior so it seems to stay as NULL when passed to the theme function.
Comment #3
lambic commentedPatch works for me