Skip to content

Commit

Permalink
fix(User): cast priority to int to avoid type error
Browse files Browse the repository at this point in the history
  • Loading branch information
jefflembeck committed May 31, 2022
1 parent e2998e7 commit c8bd04d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions www/common/AttachUser.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,9 @@
$isPaid = $user->isPaid();
if ($isPaid) {
//calculate based on paid priority
$user->setUserPriority(Util::getSetting('paid_priority', 0));
$user->setUserPriority((int)Util::getSetting('paid_priority', 0));
} else {
$user->setUserPriority(Util::getSetting('user_priority', 0));
$user->setUserPriority((int)Util::getSetting('user_priority', 0));
}

$user_email = $user->getEmail();
Expand Down

0 comments on commit c8bd04d

Please sign in to comment.