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.
In the admin section I get the following error:
notice: Undefined offset: 1 in /path/to/drupal/sites/all/modules/ubercart/uc_store/uc_store.module on line 473.
In the file uc_store.module I can suppress this error by adding the following line (at approximately line 473).
switch ($parts[0]) {
case 'admin':
if (count($parts) < 2) { return; } **************** added this line *****************
if ($parts[1] != 'store') {
break;
}
Comment | File | Size | Author |
---|---|---|---|
#2 | admin_page_footer.patch | 1.25 KB | Island Usurper |
Comments
Comment #1
rszrama CreditAttribution: rszrama commentedComment #2
Island Usurper CreditAttribution: Island Usurper commentedI noticed another problem with the switch statement, so I fixed that, too, and added comments to help explain the logic of it.
Committed.
Comment #3
rszrama CreditAttribution: rszrama commentedHooray for comments!