aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Seokseong Jeon <songsong@monet.postech.ac.kr> 2017-05-05 17:16:39 +0900
committerGravatar Seokseong Jeon <songsong@monet.postech.ac.kr> 2017-05-05 17:18:16 +0900
commit0bc59ba140b19d8e0a1762e5ffed66b0c61bd322 (patch)
tree941b7bcef7afeefae2991364b26ae4909c091a6f
parentfd5bd80af18925b910c563657418ccba45eb388f (diff)
Make actualizeFeed returns values consistent&safe
-rwxr-xr-xapp/Controllers/feedController.php2
-rw-r--r--p/api/pshb.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/app/Controllers/feedController.php b/app/Controllers/feedController.php
index b8679d86d..8e0e5dd6d 100755
--- a/app/Controllers/feedController.php
+++ b/app/Controllers/feedController.php
@@ -482,7 +482,7 @@ class FreshRSS_feed_Controller extends Minz_ActionController {
$feedDAO->updateCachedValues();
$entryDAO->commit();
} else {
- list($updated_feeds, $feed) = self::actualizeFeed($id, $url, $force, null, false, $noCommit);
+ list($updated_feeds, $feed, $nb_new_articles) = self::actualizeFeed($id, $url, $force, null, false, $noCommit);
}
if (Minz_Request::param('ajax')) {
diff --git a/p/api/pshb.php b/p/api/pshb.php
index 378f43516..a0b64ede1 100644
--- a/p/api/pshb.php
+++ b/p/api/pshb.php
@@ -136,7 +136,7 @@ foreach ($users as $userFilename) {
join_path(USERS_PATH, '_', 'config.default.php'));
new Minz_ModelPdo($username); //TODO: FIXME: Quick-fix while waiting for a better FreshRSS() constructor/init
FreshRSS_Context::init();
- list($updated_feeds, $feed) = FreshRSS_feed_Controller::actualizeFeed(0, $self, false, $simplePie);
+ list($updated_feeds, $feed, $nb_new_articles) = FreshRSS_feed_Controller::actualizeFeed(0, $self, false, $simplePie);
if ($updated_feeds > 0 || $feed != false) {
$nb++;
} else {