aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching/cgData.java
diff options
context:
space:
mode:
Diffstat (limited to 'main/src/cgeo/geocaching/cgData.java')
-rw-r--r--main/src/cgeo/geocaching/cgData.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/main/src/cgeo/geocaching/cgData.java b/main/src/cgeo/geocaching/cgData.java
index c70e8c4..96bb811 100644
--- a/main/src/cgeo/geocaching/cgData.java
+++ b/main/src/cgeo/geocaching/cgData.java
@@ -1221,7 +1221,7 @@ public class cgData {
ContentValues values = new ContentValues();
- if (cache.getUpdated() == null) {
+ if (cache.getUpdated() == 0) {
values.put("updated", System.currentTimeMillis());
} else {
values.put("updated", cache.getUpdated());
@@ -2151,8 +2151,8 @@ public class cgData {
return attributes;
}
- public cgWaypoint loadWaypoint(Integer id) {
- if (id == null || id == 0) {
+ public cgWaypoint loadWaypoint(int id) {
+ if (id == 0) {
return null;
}