diff --git a/www/common/AttachUser.php b/www/common/AttachUser.php index 424cb796ea..aa3bc02b63 100644 --- a/www/common/AttachUser.php +++ b/www/common/AttachUser.php @@ -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();