diff options
author | Bernhard Posselt <nukeawhale@gmail.com> | 2012-09-14 17:40:37 +0200 |
---|---|---|
committer | Bernhard Posselt <nukeawhale@gmail.com> | 2012-09-14 17:40:37 +0200 |
commit | dafb2543fd950e90854f50eb5d087dffbe522cc4 (patch) | |
tree | 48bc21d54081c4877a09a33970adff24cc40b4c6 /ajax/setallitemsread.php | |
parent | ae6c2a760f8b73b6826e882329e629d13efbe931 (diff) |
made feeds smaller, fixed some errors from js linter
Diffstat (limited to 'ajax/setallitemsread.php')
-rw-r--r-- | ajax/setallitemsread.php | 2 |
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); |