1
0
mirror of https://github.com/owncloud/bookmarks.git synced 2025-02-20 17:54:25 +01:00

Bookmark: correct description in import of html files

This commit is contained in:
Brice Maron 2013-03-26 00:01:53 +01:00
parent 4156a5caae
commit 6cebd89681

View File

@ -408,7 +408,11 @@ class OC_Bookmarks_Bookmarks{
$tag_str = $link->getAttribute("tags");
$tags = explode(',', $tag_str);
self::addBookmark($ref, $title, $tags);
$desc_str = '';
if($link->hasAttribute("description"))
$desc_str = $link->getAttribute("description");
self::addBookmark($ref, $title, $tags,$desc_str );
}
OCP\DB::commit();
return array();