From 28794b69cba22636ef22bd063a68732fd9ae6d6f Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Sun, 7 May 2017 18:02:49 +0200 Subject: [PATCH] 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 --- application/NetscapeBookmarkUtils.php | 1 + 1 file changed, 1 insertion(+) 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 @@ public static function import($post, $files, $linkDb, $conf, $history) $newLink['id'] = $existingLink['id']; $newLink['created'] = $existingLink['created']; $newLink['updated'] = new DateTime(); + $newLink['shorturl'] = $existingLink['shorturl']; $linkDb[$existingLink['id']] = $newLink; $importCount++; $overwriteCount++;