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.
I will provide a small patch which fixes the error message described in the title of this issue.
Comment | File | Size | Author |
---|---|---|---|
#3 | bu-undefined_index-1991940-3.patch | 709 bytes | Erik Frèrejean |
#2 | undefined_offset-1991940-2.patch | 783 bytes | scuba_fly |
#1 | undefined_offset-1991940-1.patch | 783 bytes | guillaumev |
Comments
Comment #1
guillaumev CreditAttribution: guillaumev commentedHere is the patch.
Comment #2
scuba_flyLooking at the code I think the default value should be 2
which is the index of safari 4
the error occurred because index 4 was out of the scope of the array.
Included a patch:
Comment #3
Erik FrèrejeanBesides updating the index value,
bu_get_versions()
should validate whether the requested index actually exists.Comment #4
pebosi CreditAttribution: pebosi commentedFixed in latest dev. Thanks.
Comment #5
pebosi CreditAttribution: pebosi commentedClosing.