Active
Project:
Ubercart Discount Coupons
Version:
7.x-2.1-alpha7
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
2 Apr 2013 at 12:07 UTC
Updated:
2 Apr 2013 at 12:07 UTC
Warning: implode(): Invalid arguments passed in uc_coupon_tokens() (line 85 of uc_coupon.tokens.inc).
It should be changed to:
if ($sanitize) {
array_walk($codes, 'check_plain');
}
$values[$tokens['codes']] = implode("\n", $codes);PHP's array_walk() returns a logical value, not the array itself.