Preparation for prices per registrar

This commit is contained in:
Pinga 2024-07-28 18:42:41 +03:00
parent 0799781491
commit 76f8c52f3a
8 changed files with 13 additions and 13 deletions

View file

@ -45,7 +45,7 @@ try {
if ($set_autorenewPeriod) {
list($registrar_balance, $creditLimit) = $dbh->query("SELECT accountBalance, creditLimit FROM registrar WHERE id = '$clid' LIMIT 1")->fetch(PDO::FETCH_NUM);
$returnValue = getDomainPrice($dbh, $name, $tldid, 12, 'renew');
$returnValue = getDomainPrice($dbh, $name, $tldid, 12, 'renew', $clid);
$price = $returnValue['price'];
if (($registrar_balance + $creditLimit) > $price) {