Fixed donations profile info box bug.

isset() was called instead of checking the boolean value of $EnabledRewards['HasProfileInfo' . $i]
This commit is contained in:
Observer 2014-03-28 12:32:01 +10:00
parent 84f5e7a68e
commit 3365fff6a0

View File

@ -98,7 +98,7 @@ public static function render_donor_stats($UserID) {
public static function render_profile_rewards($EnabledRewards, $ProfileRewards) {
for ($i = 1; $i <= 4; $i++) {
if (isset($EnabledRewards['HasProfileInfo' . $i]) && $ProfileRewards['ProfileInfo' . $i]) {
if ($EnabledRewards['HasProfileInfo' . $i] && $ProfileRewards['ProfileInfo' . $i]) {
?>
<div class="box">
<div class="head" style="height: 13px;">