aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
Diffstat (limited to 'main')
-rw-r--r--main/src/cgeo/geocaching/cgBase.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/main/src/cgeo/geocaching/cgBase.java b/main/src/cgeo/geocaching/cgBase.java
index 49e58e2..ed3bfd9 100644
--- a/main/src/cgeo/geocaching/cgBase.java
+++ b/main/src/cgeo/geocaching/cgBase.java
@@ -737,10 +737,10 @@ public class cgBase {
final JSONObject extra = dataJSON.getJSONObject("cs");
if (extra != null && extra.length() > 0) {
int count = extra.getInt("count");
- // unused, meaning not clear boolean li = extra.getBoolean("li");
- // expected meaning pm=premium member
- boolean pm = extra.getBoolean("pm");
- if (Settings.isPremiumMember() && !pm) {
+ // currently unused: 'pm', true for premium members
+ // check login status
+ boolean li = extra.getBoolean("li");
+ if (!li) {
parseResult.error = StatusCode.NOT_LOGGED_IN;
}
@@ -756,8 +756,8 @@ public class cgBase {
final cgCache cacheToAdd = new cgCache();
cacheToAdd.setDetailed(false);
- // coords could be reliable but we only can detect that for premium members
- cacheToAdd.setReliableLatLon(pm);
+ // coords are reliable if we are logged in
+ cacheToAdd.setReliableLatLon(li);
cacheToAdd.setGeocode(oneCache.getString("gc"));
cacheToAdd.setCoords(new Geopoint(oneCache.getDouble("lat"), oneCache.getDouble("lon")));
cacheToAdd.setName(oneCache.getString("nn"));