]> jfr.im git - irc/unrealircd/unrealircd-webpanel-plugins.git/commitdiff
Fix bug stopping other users being viewed because this user have no GEOIP
authorValerie Liu <redacted>
Mon, 24 Jun 2024 15:54:20 +0000 (23:54 +0800)
committerGitHub <redacted>
Mon, 24 Jun 2024 15:54:20 +0000 (23:54 +0800)
live_map/index.php

index 4f39eebb1dc52b4e6c04731b9b145f0a5fbaf79a..1d9602555b0579cc4faed7aad541b49a9b0dbbd9 100644 (file)
@@ -314,7 +314,7 @@ for (let i = 0; users[i] != null; i++)
         let v = document.getElementsByClassName('country-'+cc)[0];
         v.innerHTML = ++countrycounts[cc];
     }
-    else {
+    else if (coords != undefined) {
         countrycounts[cc] = 1;
         var numberIcon = L.divIcon({
             className: 'number-icon country-'+cc,