Skip to content

Commit 091aa64

Browse files
committed
[FIX] Manual Payout warning when account balance too low
1 parent bb3fa99 commit 091aa64

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/pages/account/edit.inc.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@
103103
} else if ($config['twofactor']['enabled'] && $config['twofactor']['options']['withdraw'] && !$wf_editable) {
104104
$_SESSION['POPUP'][] = array('CONTENT' => 'You have not yet unlocked account withdrawls.', 'TYPE' => 'alert alert-danger');
105105
} else if ($aBalance['confirmed'] < $config['mp_threshold']) {
106-
$_SESSION['POPUP'][] = array('CONTENT' => 'Payout must be greater or equal than ' . $config['mp_threshold'] . '.', 'TYPE' => 'info');
106+
$_SESSION['POPUP'][] = array('CONTENT' => 'Account balance must be >= ' . $config['mp_threshold'] . ' to do a Manual Payout.', 'TYPE' => 'alert alert-warning');
107107
} else if (!$coin_address->getCoinAddress($_SESSION['USERDATA']['id'])) {
108108
$_SESSION['POPUP'][] = array('CONTENT' => 'You have no payout address set.', 'TYPE' => 'alert alert-danger');
109109
} else {
@@ -181,7 +181,7 @@
181181
$wf_editable = $user->token->isTokenValid($_SESSION['USERDATA']['id'], $wf_token, 7);
182182
$wf_sent = $user->token->doesTokenExist('withdraw_funds', $_SESSION['USERDATA']['id']);
183183
}
184-
184+
185185
// display token info per each - only when sent and editable or just sent, not by default
186186
(!empty($eaprep_sent) && !empty($eaprep_edit)) ? $_SESSION['POPUP'][] = array('CONTENT' => $eaprep_sent, 'TYPE' => 'alert alert-success'):"";
187187
(!empty($eaprep_sent) && empty($eaprep_edit)) ? $_SESSION['POPUP'][] = array('CONTENT' => $message_tokensent_invalid.$messages_tokensent_status['ea'], 'TYPE' => 'alert alert-success'):"";

0 commit comments

Comments
 (0)