View Single Post
Old 05-12-2005, 02:25 AM   #1
corsc
Green Mole
 
Join Date: May 2005
Posts: 4
Running PHP in error_reporting(E_ALL)

You probably have found this already but when you run in E_ALL mode, and search for a string that is not in the database, you will receive a warning that $soundex_results is not a valid sql resource (line 650 of search_functions.php).

This can be fixed by replacing this line with:
if (is_resource($soundex_results)
&& mysql_num_rows($soundex_results) > 0) {

Sorry if this is not the appropriate place to post patches.

Regards,
Corey
corsc is offline   Reply With Quote