Chapter 12. Searching and Indexing Content, Page 306

Location on the page: 
listing of the legacysearch.module, legacy_update_shutdown()
Chapter: 
12. Searching and Indexing Content
Error: 

variable_set('legacysearch_cron_last', $last_change);

Correction: 

variable_set('legacysearch_cron_last_change', $last_change);

Description of the Error: 

On the listing of the legacysearch.module the variables
'legacysearch_cron_last_id' and 'legacysearch_cron_last_change' are pulled
out from the database using variable_get. Later in the code the
legacysearch_update_shutdown() function uses variable_set to store those
variables in the database and at this time they have names
'legacysearch_cron_last_id' which is correct and 'legacysearch_cron_last'
which should be 'legacysearch_cron_last_change'.