Fix bug add favorite entry

See https://github.com/marienfressinaud/FreshRSS/issues/494
This commit is contained in:
Marien Fressinaud
2014-08-23 22:02:22 +02:00
parent ae54a14386
commit 1316ada152
2 changed files with 2 additions and 2 deletions

View File

@@ -284,7 +284,7 @@ class FreshRSS_importExport_Controller extends Minz_ActionController {
$url = $origin[$key];
$name = $origin['title'];
$website = $origin['htmlUrl'];
$error = false;
try {
// Create a Feed object and add it in DB
$feed = new FreshRSS_Feed($url);

View File

@@ -65,7 +65,7 @@ class FreshRSS_EntryDAO extends Minz_ModelPdo {
}
if (!isset($existingGuids[$entry->guid()]) &&
($feedHistory != 0 || $eDate >= $date_min)) {
($feedHistory != 0 || $eDate >= $date_min || $entry->isFavorite())) {
$values = $entry->toArray();
$useDeclaredDate = empty($existingGuids);