Download & Extend

Undefined property: stdClass::$payment_method in uc_credit_order

Project:Ubercart
Version:6.x-2.x-dev
Component:Code
Category:bug report
Priority:minor
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

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

Comments

#1

Status:active» needs review

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

AttachmentSizeStatusTest resultOperations
ubercart-n1854596.patch763 bytesIdlePASSED: [[SimpleTest]]: [MySQL] 2,117 pass(es).View details

#2

Priority:normal» minor

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

#3

Sure thing.

AttachmentSizeStatusTest resultOperations
ubercart-n1854596-3.patch762 bytesIdlePASSED: [[SimpleTest]]: [MySQL] 2,113 pass(es).View details

#4

Status:needs review» fixed

Committed.

#5

Status:fixed» closed (fixed)

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

nobody click here