The following watchdog message is recorded when I load the checkout page:

Notice: Undefined property: stdClass::$payment_method in uc_credit_order() (line 307 of ubercart/payment/uc_credit/uc_credit.module).

Files: 
CommentFileSizeAuthor
#3 ubercart-n1854596-3.patch762 bytesDamienMcKenna
PASSED: [[SimpleTest]]: [MySQL] 2,113 pass(es). View
#1 ubercart-n1854596.patch763 bytesDamienMcKenna
PASSED: [[SimpleTest]]: [MySQL] 2,117 pass(es). View

Comments

DamienMcKenna’s picture

Status: Active » Needs review
FileSize
763 bytes
PASSED: [[SimpleTest]]: [MySQL] 2,117 pass(es). View

This patch just checks to see if the value exists before using it.

TR’s picture

Priority: Normal » Minor

Can you copy what was done in 7.x-3.x, by using isset() instead of !empty() ?

DamienMcKenna’s picture

FileSize
762 bytes
PASSED: [[SimpleTest]]: [MySQL] 2,113 pass(es). View

Sure thing.

longwave’s picture

Status: Needs review » Fixed

Committed.

Status: Fixed » Closed (fixed)

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