Undefined variable: kwlist in bible_search_keyword()

Forums: 

I get the following error when I search the Book:Chapter:Verse Search in the search box:

Notice: Undefined variable: kwlist in bible_search_keyword() (line 2323 of /home/username/public_html/sites/all/modules/bible/bible.module).

I am using drupal-7.18.

its not a error, but a notice

Kriss's picture

its not a error, but a notice.

 

include error_reporting(E_ERROR); at the top

When i input and search for

When i input and search for "GEN*1-10" (without the ") it gave me the following error/notice:

 

PDOException: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')) ) subquery' at line 1: SELECT COUNT(*) AS expression FROM (SELECT 1 AS expression FROM {bible_context} bible_context WHERE ( linemark <> '*' AND bid = '1' AND book IN ()) ) subquery; Array ( ) in PagerDefault->execute() (line 74 of /home/username/public_html/includes/pager.inc).

 

Is there a way to fix this, when the user wrongly enter the way it is to be searched? Thanks. :-)