Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
If no text is returned by any module when the "update_index" operation is invoked for hook_nodeapi(), the following PHP error is thrown because the $extra variable is not initialized in apachesolr_node_to_document():
warning: implode() [function.implode]: Invalid arguments passed in /home/chris/Public/apachesolr/sites/all/modules/contrib/apachesolr/apachesolr.index.inc on line 68.
Small issue. Small patch attached.
Comment | File | Size | Author |
---|---|---|---|
#2 | better-extra.patch | 1.12 KB | robertDouglass |
initialize_extra_array.patch | 315 bytes | cpliakas | |
Comments
Comment #1
robertDouglass CreditAttribution: robertDouglass commentedThanks! Committed to both branches.
Comment #2
robertDouglass CreditAttribution: robertDouglass commentedActually, for DRUPAL-6--1 and DRUPAL-5--2 I'm going to backport from DRUPAL-6--2 because it's a better system (with keyed array in $extra).
Comment #3
robertDouglass CreditAttribution: robertDouglass commented#2 was applied to DRUPAL-6--1 and DRUPAL-5--2