Skip to content
This repository has been archived by the owner on Nov 15, 2022. It is now read-only.

Commit

Permalink
fix(aftermarket domains): updated last patch to a better way
Browse files Browse the repository at this point in the history
  • Loading branch information
KaiSchwarz-cnic committed Sep 14, 2022
1 parent 5e0278d commit 067c8ec
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions modules/addons/ispapidomaincheck/lib/Client/Controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ public function checkdomains($vars, $smarty)
) {
$row["statusText"] = SearchResult::STATUS_NOT_REGISTERED;
$row["status"] = "AVAILABLE";
$row["REASON"] = "AFTERMARKET";
$rs["REASON"][$idx] = "AFTERMARKET";
$price = $rs["PRICE"][$idx];
$currency = $rs["CURRENCY"][$idx];
$currencies = DCHelper::getCurrencies();
Expand Down Expand Up @@ -218,10 +218,6 @@ public function checkdomains($vars, $smarty)
}
foreach ($keys as &$key) {
if (!empty($rs[$key][$idx])) {
// DON'T OVERWRITE THE REASON FOR AFTERMARKET DOMAINS
if ($key === "REASON" && $row[$key] === "AFTERMARKET") {
continue;
}
$row[$key] = $rs[$key][$idx];
}
}
Expand Down

0 comments on commit 067c8ec

Please sign in to comment.