diff options
author | Erich Eckner <git@eckner.net> | 2022-07-28 09:38:32 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2022-07-28 09:38:32 +0200 |
commit | bef9672d1d992db657bf2ecf0842d975531df5fd (patch) | |
tree | 79142751e6da272b010739d2363a7b8a9e98f49b | |
parent | 62b9c2629653a97b8e26a2354a699bcfc3b7d8b1 (diff) | |
download | colocation-bef9672d1d992db657bf2ecf0842d975531df5fd.tar.xz |
refactor
-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(); |