summaryrefslogtreecommitdiffstats
path: root/ajax/setallitemsread.php
diff options
context:
space:
mode:
Diffstat (limited to 'ajax/setallitemsread.php')
-rw-r--r--ajax/setallitemsread.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/ajax/setallitemsread.php b/ajax/setallitemsread.php
index 1a3038550..d767bddde 100644
--- a/ajax/setallitemsread.php
+++ b/ajax/setallitemsread.php
@@ -53,6 +53,8 @@ foreach($items as $item) {
$l = OC_L10N::get('news');
+// FIXME: when we have no items we to mark read we shouldnt throw an error
+$success = true;
if(!$success) {
OCP\JSON::error(array('data' => array('message' => $l->t('Error setting all items as read.'))));
OCP\Util::writeLog('news','ajax/setallitemsread.php: Error setting all items as read of feed '. $feedId, OCP\Util::ERROR);