Repeated Error In Log - Fn.promotions.php On Line 1395

I seem to keep getting an error in the following file.

public_html/app/functions/fn.promotions.php on line 1395

Line 1395 says…

“if ($val[‘condition’] == ‘coupon_code’) {”

…but I have no idea what the problem may be. Anyone have any ideas?

Hi clips,



Possibly your promotions is set in a specific way and the “$val['condition']” array element is not defined so please try to replace it with:

if (!empty($val['condition']) && $val['condition'] == 'coupon_code') {



Best regards, Sergei

Thanks Sergei, that sounds like it may be a bug. Is this the case?

[quote name='clips' timestamp='1398189715' post='182106']

Thanks Sergei, that sounds like it may be a bug. Is this the case?

[/quote]



Did you try to contact CS-Cart support team with this issue?

Posted it as a bug here…

http://forum.cs-cart.com/tracker/issue-5038-repeated-error-in-log-fnpromotionsphp-on-line-1395/