The two things might not be related. Not sure.Hello I am getting this at order detial page:
Warning: in_array() expects parameter 2 to be array, bool given in /wp-content/plugins/rewardsystem/includes/srp-admin-functions.php on line 78
And the points are nit being rewared, can you help me?
Here is code that makes that error not appear anymore - note the careful wording - not saying it fixes whatever the underlaying issue is, but it just fixes the error message literal issue. (ie, now the code only treats it as an array when there is a setting.. but as for why there was no settings (thus returning false, a boolean) that is a separate problem I have no idea.)
wp-content/plugins/rewardsystem/includes/srp-admin-functions.php line 78:
Code:
$redeemOption = get_option('rs_order_status_control_redeem', array());
if (is_array($redeemOption) && in_array($OrderStatus, $redeemOption)) {
RSPointExpiry::update_redeem_point_for_user($orderid);
}p/code]