remove credit
This commit is contained in:
@@ -749,23 +749,8 @@ class user_kid extends user_parent {
|
||||
//ha igen, túllepte-e PIROS
|
||||
//ha nem, akkor SÁRGA
|
||||
//ha nincs, akkor azonnal PIROS
|
||||
if (!$this->get_uk_lease()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if ($this->get_uk_balance() < 0 || ($this->get_uk_balance() - $trainingPrice) < 0) {
|
||||
if (!$has_credit) {
|
||||
return 'restricted';
|
||||
}
|
||||
else {
|
||||
if ($this->get_uk_credit() < $credit) {
|
||||
return 'credit-warning';
|
||||
}
|
||||
else {
|
||||
return 'credit-restricted';
|
||||
}
|
||||
}
|
||||
|
||||
return 'credit-warning';
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user