summaryrefslogtreecommitdiff
path: root/app/Controllers/feedController.php
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2016-03-06 17:28:36 +0100
committerGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2016-03-06 17:28:36 +0100
commitf6d781833afa33d97829e091728cf1c3c78d775d (patch)
tree3ec0a9195e4fe42381d775268164d50b07c0f98c /app/Controllers/feedController.php
parent604c104d0827494fefe2d5ea2eac5b28b6a9c26f (diff)
parent7f91dbf16dca9f824b7bbbd42ef34f39ac7c22a9 (diff)
Merge pull request #1111 from Alkarex/UpradeNewArticles
SQLite: Articles from old version were marked as unread on upgrade
Diffstat (limited to 'app/Controllers/feedController.php')
-rwxr-xr-xapp/Controllers/feedController.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/Controllers/feedController.php b/app/Controllers/feedController.php
index 7294fe8f4..b559d3c22 100755
--- a/app/Controllers/feedController.php
+++ b/app/Controllers/feedController.php
@@ -355,7 +355,7 @@ class FreshRSS_feed_Controller extends Minz_ActionController {
$entry_date = $entry->date(true);
if (isset($existingHashForGuids[$entry->guid()])) {
$existingHash = $existingHashForGuids[$entry->guid()];
- if (strcasecmp($existingHash, $entry->hash()) === 0 || $existingHash === '00000000000000000000000000000000') {
+ if (strcasecmp($existingHash, $entry->hash()) === 0 || trim($existingHash, '0') == '') {
//This entry already exists and is unchanged. TODO: Remove the test with the zero'ed hash in FreshRSS v1.3
$oldGuids[] = $entry->guid();
} else { //This entry already exists but has been updated