|
@@ -32,5 +32,6 @@ add_hook('ClientAreaPageCart', 1, function($vars) {
|
|
|
array_push($free_card_pids, $item['pid']);
|
|
array_push($free_card_pids, $item['pid']);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
- return array('clientPids' => $active_pids, 'clientActiveFree' => $free_pids, 'clientCard' => $card_pids, 'clientCardFree' => $free_card_pids);
|
|
|
|
|
|
|
+ $free_card_double_pids = array_unique(array_diff_assoc($free_card_pids, array_unique($free_card_pids)));
|
|
|
|
|
+ return array('clientPids' => $active_pids, 'clientActiveFree' => $free_pids, 'clientCard' => $card_pids, 'clientCardFree' => $free_card_pids, 'clientCardDoubleFree' => $free_card_double_pids);
|
|
|
});
|
|
});
|