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

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

DamienMcKenna’s picture

Status: Active » Needs review
FileSize
763 bytes

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

Sure thing.

longwave’s picture

Status: Needs review » Fixed

Committed.

Status: Fixed » Closed (fixed)

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