Closed (fixed)
Project:
Ubercart
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
11 Apr 2009 at 21:38 UTC
Updated:
2 May 2009 at 06:30 UTC
Jump to comment: Most recent file
...because if the $order->uid == 0, it'll pull the global $user. It shouldn't do that here.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | 431140.ca_user_name.2.x.patch | 864 bytes | cha0s |
| #1 | 431140.ca_user_name.2.x.patch | 694 bytes | cha0s |
| ca_user_name.04-10-09-17-23.2.x.patch | 687 bytes | cha0s |
Comments
Comment #1
cha0s commentedEr, the return might help ;P
Comment #2
rszrama commentedHmm... what if the order has a uid but the user was deleted? I don't suppose that would really matter... it would still generate a FALSE, right?
Comment #3
cha0s commentedIt should be fixed, 'cuz if uc_order_load returns FALSE, it'll throw a warning about trying to access the property of a non-object. I decided to be extra explicit and add the return FALSE, too.
Comment #4
rszrama commented