I am getting this notice in search results page.

Notice: Undefined index: advanced in custom_search_form_alter() (line 107 of /modules/custom_search/custom_search.module).

There is also a warning

Warning: htmlspecialchars() [function.htmlspecialchars]: Invalid multibyte sequence in argument in check_plain() (line 1476 of /includes/bootstrap.inc), but I guess it is Drupal problem.

Comments

jdanthinne’s picture

Status: Active » Needs review

Ok, after some search, I've found that this error (the Notice) happens when anonymous user has no permission for the advanced search and my module is trying to override it… I've just committed changes to the DEV version. Please test & review.

The second Warning is not due to my module I think.

rapowder’s picture

I confirm that the dev version fixes the issue and I don't see any bugs introduced by the fix.
(BTW the second bug was probably related to another module as I didn't notice it)

jdanthinne’s picture

Status: Needs review » Closed (fixed)
wroxbox’s picture

Thank you, Dev works!