update_index doesn't work when search_block table contains nid/0
bs_scorp - January 7, 2008 - 16:29
| Project: | Restricted Search |
| Version: | 5.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | minor |
| Assigned: | Unassigned |
| Status: | by design |
Jump to:
Description
Hi,
I really like your module and I certainly need it for my site.
I found the following error in the search_block_update_index function:
db_result() returns 0 == false if you have the node/0 in the search_block table.
...
while($nid = db_result($result, $row++)) {
...
Greetings

#1
How do you have an nid of 0? nid's start at 1.
--Andrew
#2
#3
I checked on IRC, and having a nid=0 will break all kinds of things. I'm marking as by design because if you an nid=0, something is seriously broken with your site.
--Andrew