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.
Line 61 of includes/commerce_registration.forms and line 172 of commerce_registration.module use an "isset" statement and should be using a !empty instead to make sure the array isn't empty. Otherwise the loop that follows tries to iterate over empty array contents and throws a PHP notice.
Comment | File | Size | Author |
---|---|---|---|
#1 | changetonotempty-2084973-1.patch | 1.33 KB | deggertsen |
Comments
Comment #1
deggertsen CreditAttribution: deggertsen commentedHere's a patch applied against dev. I agree with the logic above.
Comment #3
blacklabel_tom CreditAttribution: blacklabel_tom commentedThis has been merged into 7.x-2.x-dev