fixed bug when deleting records
This commit is contained in:
parent
5f38c96822
commit
674c210f09
1 changed files with 1 additions and 1 deletions
|
@ -8,7 +8,7 @@ if (array_key_exists($_REQUEST['zone'], $config['sddns']['zones'])) {
|
|||
$zone = $config['sddns']['zones'][$_REQUEST['zone']];
|
||||
|
||||
if (!empty($_REQUEST['host'])) {
|
||||
if ($host = reset(DBHost::get($db, array('host' => $_REQUEST['host'], 'zone' => $zone)))) {
|
||||
if (list($host) = DBHost::get($db, array('host' => $_REQUEST['host'], 'zone' => $zone))) {
|
||||
if ($host->checkPassword($pw) || isAuthentificated()) {
|
||||
if (isset($_REQUEST['class']) && in_array($_REQUEST['class'], $config['sddns']['classes']))
|
||||
$class = $_REQUEST['class'];
|
||||
|
|
Loading…
Add table
Reference in a new issue