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
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

deviantintegral - April 22, 2008 - 16:43

How do you have an nid of 0? nid's start at 1.

--Andrew

#2

deviantintegral - April 22, 2008 - 16:58
Priority:critical» minor

#3

deviantintegral - October 9, 2008 - 14:52
Status:active» by design

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

 
 

Drupal is a registered trademark of Dries Buytaert.