Skip to content

Commit

Permalink
dont check for standardsubdomain in SubDomains.listingCount() as it w…
Browse files Browse the repository at this point in the history
…as also removed from SubDomains.listing()

Signed-off-by: Michael Kaufmann <[email protected]>
  • Loading branch information
d00p committed Oct 13, 2023
1 parent cfae354 commit f757233
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions lib/Froxlor/Api/Commands/SubDomains.php
Original file line number Diff line number Diff line change
Expand Up @@ -1078,10 +1078,8 @@ public function listingCount()
$custom_list_result = $_custom_list_result['list'];
}
$customer_ids = [];
$customer_stdsubs = [];
foreach ($custom_list_result as $customer) {
$customer_ids[] = $customer['customerid'];
$customer_stdsubs[$customer['customerid']] = $customer['standardsubdomain'];
}
} else {
if (Settings::IsInList('panel.customer_hide_options', 'domains')) {
Expand All @@ -1090,9 +1088,6 @@ public function listingCount()
$customer_ids = [
$this->getUserDetail('customerid')
];
$customer_stdsubs = [
$this->getUserDetail('customerid') => $this->getUserDetail('standardsubdomain')
];
}
if (!empty($customer_ids)) {
// prepare select statement
Expand All @@ -1101,7 +1096,6 @@ public function listingCount()
FROM `" . TABLE_PANEL_DOMAINS . "` `d`
WHERE `d`.`customerid` IN (" . implode(', ', $customer_ids) . ")
AND `d`.`email_only` = '0'
AND `d`.`id` NOT IN (" . implode(', ', $customer_stdsubs) . ")
");
$result = Database::pexecute_first($domains_stmt, null, true, true);
if ($result) {
Expand Down

0 comments on commit f757233

Please sign in to comment.