mirror of
https://github.com/getnamingo/registry.git
synced 2025-07-01 16:43:26 +02:00
Small panel bugfixes
This commit is contained in:
parent
a30f71e10a
commit
9cf54beb24
3 changed files with 13 additions and 6 deletions
|
@ -39,7 +39,9 @@ class ReportsController extends Controller
|
|||
'registrar' => $registrar['name'],
|
||||
'currency' => $currency,
|
||||
'number' => $domainCount[0]['count'] ?? 0,
|
||||
'share' => number_format(($domainCount[0]['count'] ?? 0) / $numT * 100, 2),
|
||||
'share' => $numT > 0
|
||||
? number_format(($domainCount[0]['count'] ?? 0) / $numT * 100, 2)
|
||||
: '0.00',
|
||||
'earnings' => $earnings[0]['amt'] ?? 0
|
||||
];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue