fix listing of customer email addresses if 'domain' section is hidden via settings, fixes #803
Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
@@ -129,16 +129,15 @@ if ($page == 'overview') {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$json_result = SubDomains::getLocal($userinfo, [
|
$result_stmt = Database::prepare("
|
||||||
'sql_search' => [
|
SELECT COUNT(`id`) as emaildomains
|
||||||
'd.isemaildomain' => [
|
FROM `" . TABLE_PANEL_DOMAINS . "`
|
||||||
'value' => 1,
|
WHERE `customerid`= :cid AND `isemaildomain` = '1'
|
||||||
'op' => '='
|
");
|
||||||
]
|
$result = Database::pexecute_first($result_stmt, array(
|
||||||
]
|
"cid" => $userinfo['customerid']
|
||||||
])->listing();
|
));
|
||||||
$result = json_decode($json_result, true)['data'];
|
$emaildomains_count = $result['emaildomains'];
|
||||||
$emaildomains_count = $result['count'];
|
|
||||||
|
|
||||||
eval("echo \"" . \Froxlor\UI\Template::getTemplate("email/emails") . "\";");
|
eval("echo \"" . \Froxlor\UI\Template::getTemplate("email/emails") . "\";");
|
||||||
} elseif ($action == 'delete' && $id != 0) {
|
} elseif ($action == 'delete' && $id != 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user