summaryrefslogtreecommitdiffstats
path: root/ajax
diff options
context:
space:
mode:
authorBernhard Posselt <nukeawhale@gmail.com>2012-09-14 17:40:37 +0200
committerBernhard Posselt <nukeawhale@gmail.com>2012-09-14 17:40:37 +0200
commitdafb2543fd950e90854f50eb5d087dffbe522cc4 (patch)
tree48bc21d54081c4877a09a33970adff24cc40b4c6 /ajax
parentae6c2a760f8b73b6826e882329e629d13efbe931 (diff)
made feeds smaller, fixed some errors from js linter
Diffstat (limited to 'ajax')
-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);