mirror of
https://github.com/getnamingo/registry.git
synced 2025-05-17 10:06:59 +02:00
Small interface improvements
This commit is contained in:
parent
95bd3725ca
commit
6f7f767547
3 changed files with 9 additions and 6 deletions
|
@ -149,8 +149,11 @@ class FinancialsController extends Controller
|
|||
$db = $this->container->get('db');
|
||||
$registrar_id = $data['registrar'];
|
||||
$amount = $data['amount'];
|
||||
$description = empty($data['description']) ? "funds added to account balance" : $data['description'];
|
||||
|
||||
$description = "funds added to account balance";
|
||||
if (!empty($data['description'])) {
|
||||
$description .= " (" . $data['description'] . ")";
|
||||
}
|
||||
|
||||
$isPositiveNumberWithTwoDecimals = filter_var($amount, FILTER_VALIDATE_FLOAT) !== false && preg_match('/^\d+(\.\d{1,2})?$/', $amount);
|
||||
|
||||
if ($isPositiveNumberWithTwoDecimals) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue