View Single Post
Old 04-29-2004, 09:59 AM   #1
blackfeather
Green Mole
 
blackfeather's Avatar
 
Join Date: Apr 2004
Location: is
Posts: 3
Exclamation Undefined Variable: $reg

I think I found a typo in version 1.8.0:

When doing searches with keywords as short as SMALL_WORDS_SIZE or shorter, I would get this message from PHP for each keyword entered:

Notice: Undefined variable: reg in ..\libs\search_function.php on line 150

I notice that this array, '$reg' only exists in the code in 4 or 5 places, and never gets assigned any value. Is this a typo? should this be '$regs' instead of '$reg'? It also exists in robot_functions.php around line 150.

After changing all occurances to '$regs', the above error dissappeared.
blackfeather is offline   Reply With Quote