diff options
-rw-r--r-- | css/news.css | 1 | ||||
-rw-r--r-- | lib/foldermapper.php | 10 | ||||
-rw-r--r-- | lib/utils.php | 4 |
3 files changed, 14 insertions, 1 deletions
diff --git a/css/news.css b/css/news.css index 3a9ee7fb5..41bb60662 100644 --- a/css/news.css +++ b/css/news.css @@ -571,6 +571,7 @@ ul.menu { .popup.bottomleft { left: 34.8em; + /*left: 3.8em;*/ } diff --git a/lib/foldermapper.php b/lib/foldermapper.php index 8b948842c..abc89b5af 100644 --- a/lib/foldermapper.php +++ b/lib/foldermapper.php @@ -128,11 +128,21 @@ class FolderMapper { return $folderid; } + /** + * @brief Delete the folder and all its feeds from the database + * @param folder the folder to be deleted (an instance of OCA\News\Folder) + * @returns true if the folder has been deleted, false if an error occurred + */ public function delete(Folder $folder){ $folderid = $folder->getId(); return deleteById(folderid); } + /** + * @brief Delete the folder and all its feeds from the database + * @param folder the folder to be deleted (an instance of OCA\News\Folder) + * @returns true if the folder has been deleted, false if an error occurred + */ public function deleteById($folderid){ if ($folderid == null){ return false; diff --git a/lib/utils.php b/lib/utils.php index 5def91e4a..7ad9f1929 100644 --- a/lib/utils.php +++ b/lib/utils.php @@ -46,7 +46,9 @@ class Utils { $itemBody = $spitem->get_content(); $itemAuthor = $spitem->get_author(); $item = new Item($itemUrl, $itemTitle, $itemGUID, $itemBody); - $item->setAuthor($itemAuthor->get_name()); + if ($itemAuthor !== null) { + $item->setAuthor($itemAuthor->get_name()); + } $items[] = $item; } } |