...because if the $order->uid == 0, it'll pull the global $user. It shouldn't do that here.

Comments

cha0s’s picture

StatusFileSize
new694 bytes

Er, the return might help ;P

rszrama’s picture

Hmm... 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?

cha0s’s picture

StatusFileSize
new864 bytes

It 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.

rszrama’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.