started work in SubDomains-ApiCommand; minor fixes

Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann (d00p)
2018-02-27 10:34:37 +01:00
parent b097c19c0a
commit 392db944a2
5 changed files with 316 additions and 74 deletions

View File

@@ -138,9 +138,7 @@ if ($page == 'domains' || $page == 'overview') {
if (isset($_POST['send']) && $_POST['send'] == 'send' && $alias_check['count'] == 0) {
try {
Domains::getLocal($userinfo, array_merge(array(
'id' => $id
), $_POST))->delete();
Domains::getLocal($userinfo, $_POST)->delete();
} catch (Exception $e) {
dynamic_error($e->getMessage());
}