Make actualizeFeed returns values consistent&safe

pull/1517/head
Seokseong Jeon 8 years ago
parent fd5bd80af1
commit 0bc59ba140
  1. 2
      app/Controllers/feedController.php
  2. 2
      p/api/pshb.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')) {

@ -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 {

Loading…
Cancel
Save