diff options
-rw-r--r-- | html/maintenance.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/html/maintenance.php b/html/maintenance.php index 6b70fc5..cf3ab62 100644 --- a/html/maintenance.php +++ b/html/maintenance.php @@ -79,7 +79,7 @@ if (array_key_exists('machine',$_GET)) { if (array_key_exists('ddns', $_GET)) { $result = $db -> query( - 'SELECT keys.id, keys.key, COUNT(1) as cnt FROM keys' . + 'SELECT keys.id, COUNT(1) as cnt FROM keys' . ' JOIN permissions ON permissions.key_id = keys.id' . ' JOIN "values" ON permissions.value_id = "values".id' . ' JOIN states ON "values".state_id = states.id' . @@ -91,7 +91,6 @@ if (array_key_exists('ddns', $_GET)) { while ($row = $result -> fetchArray()) { if ($row['cnt'] == 1) break; - echo $row['key'] . "\n"; $key_id = $row['id']; break; } |