aboutsummaryrefslogtreecommitdiffhomepage
path: root/application
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2017-05-07 18:02:49 +0200
committerArthurHoaro <arthur@hoa.ro>2017-05-07 18:02:49 +0200
commit28794b69cba22636ef22bd063a68732fd9ae6d6f (patch)
treeac4e570a8a71f28dfab36b66a87c98d503f121a4 /application
parenta4af59f47103a3f9c903eeddb1e30ab9cb7344f0 (diff)
downloadShaarli-28794b69cba22636ef22bd063a68732fd9ae6d6f.tar.gz
Shaarli-28794b69cba22636ef22bd063a68732fd9ae6d6f.tar.zst
Shaarli-28794b69cba22636ef22bd063a68732fd9ae6d6f.zip
Fix a bug happening when importing links with override option
The shorturl would be set to null, generating a lot of warnings and breaking permalinks
Diffstat (limited to 'application')
-rw-r--r--application/NetscapeBookmarkUtils.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/application/NetscapeBookmarkUtils.php b/application/NetscapeBookmarkUtils.php
index bbfde138..2a10ff22 100644
--- a/application/NetscapeBookmarkUtils.php
+++ b/application/NetscapeBookmarkUtils.php
@@ -180,6 +180,7 @@ class NetscapeBookmarkUtils
180 $newLink['id'] = $existingLink['id']; 180 $newLink['id'] = $existingLink['id'];
181 $newLink['created'] = $existingLink['created']; 181 $newLink['created'] = $existingLink['created'];
182 $newLink['updated'] = new DateTime(); 182 $newLink['updated'] = new DateTime();
183 $newLink['shorturl'] = $existingLink['shorturl'];
183 $linkDb[$existingLink['id']] = $newLink; 184 $linkDb[$existingLink['id']] = $newLink;
184 $importCount++; 185 $importCount++;
185 $overwriteCount++; 186 $overwriteCount++;