summaryrefslogtreecommitdiff
path: root/core/structs.go
diff options
context:
space:
mode:
Diffstat (limited to 'core/structs.go')
-rw-r--r--core/structs.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/structs.go b/core/structs.go
index b9624a2..1244567 100644
--- a/core/structs.go
+++ b/core/structs.go
@@ -113,7 +113,7 @@ func (d *FullData) InsertPage(new *Page, remote string) {
oldPage, ok := d.Pages[remote]
if !ok || d.Pages[remote].Hash != new.Hash {
// pages are different, or there was never an old one
- if oldPage != nil && new.Title == "" && oldPage.Title != "" {
+ if oldPage != nil && oldPage.Title != "" {
new.Title = oldPage.Title
}
d.Pages[remote] = new