From 8d51d6425761e8ab278a4ed08763213a42ded2b2 Mon Sep 17 00:00:00 2001 From: Brice Maron Date: Mon, 5 Nov 2012 20:38:48 +0000 Subject: [PATCH] Bookmark: Prevent exporting empty bookmarks fix #145 --- export.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/export.php b/export.php index ed9d5b21..fcf906be 100644 --- a/export.php +++ b/export.php @@ -22,10 +22,12 @@ Do Not Edit! -->

EOT; +$l = new OC_l10n('bookmarks'); +$unamed_label = $l->t('untitled'); $bookmarks = OC_Bookmarks_Bookmarks::findBookmarks(0, 'id', array(), true, -1); foreach($bookmarks as $bm) { $file .= '

'; - $file .= htmlspecialchars($bm['title'], ENT_QUOTES, 'UTF-8').''; + $file .= htmlspecialchars($unamed_label, ENT_QUOTES, 'UTF-8').''; if($bm['description']) $file .= '
'.htmlspecialchars($bm['description'], ENT_QUOTES, 'UTF-8'); }