Notice: Undefined variable: review in uc_payment_method_cod() (line 200 of /home/xxx/xx/sites/all/modules/ubercart/payment/uc_payment_pack/uc_payment_pack.module).

seems that the conditional doesnt have a else to it as the $review variable isnt set if the if statement is false. hence the error. I just added an else { $review = 0; } to fix the problem. any other method?

screenshot: http://prntscr.com/2al8l


191     case 'cart-review':
192       if (variable_get('uc_cod_delivery_date', FALSE)) {
193         $date = uc_date_format(
194           $order->payment_details['delivery_month'],
195           $order->payment_details['delivery_day'],
196           $order->payment_details['delivery_year']
197         );
198         $review[] = array('title' => t('Delivery date'), 'data' => $date);
199       }
200       return $review;

Comments

tr’s picture

Status: Active » Fixed

Fix committed to 7.x-3.x and 6.x-2.x. Thanks.

Status: Fixed » Closed (fixed)

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