Closed (fixed)
Project:
Ubercart
Version:
6.x-2.0-beta4
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
16 Feb 2009 at 10:51 UTC
Updated:
2 Mar 2009 at 20:20 UTC
Jump to comment: Most recent file
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 commentedComment #2
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 commentedHooray for comments!