Add following line:

$rows = array();

Into function theme_uc_payment_method_table(), file uc_payment.admin.inc right before foreach loop.

CommentFileSizeAuthor
#1 1460782-no-payment-methods.patch1.01 KBtr

Comments

tr’s picture

Status: Active » Needs review
StatusFileSize
new1.01 KB

Here's a patch that eliminates the PHP Notice and explains to the user what needs to be done to fix things, instead of just saying "No payment methods are available."

Please test it out.

tr’s picture

Version: 7.x-3.0 » 7.x-3.x-dev
tr’s picture

Status: Needs review » Needs work
tr’s picture

Status: Needs work » Needs review

C'mon bot ...

tr’s picture

Status: Needs review » Fixed

Committed to 7.x-3.x then backported and committed to 6.x-2.x.

Status: Fixed » Closed (fixed)

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