diff options
Diffstat (limited to 'html/maintenance.php')
-rw-r--r-- | html/maintenance.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/html/maintenance.php b/html/maintenance.php index 8c64713..eac6d73 100644 --- a/html/maintenance.php +++ b/html/maintenance.php @@ -88,10 +88,10 @@ if (array_key_exists('ddns', $_GET)) { ' ORDER BY cnt DESC' ); while ($row = $result -> fetchArray()) { - if ($row['cnt'] != 1) { - echo $row['key'] . "\n"; - die(); - } + if ($row['cnt'] == 1) + break; + echo $row['key'] . "\n"; + die(); } $key_id = $db -> add_key(); |