diff options
| author | 2016-03-06 17:28:36 +0100 | |
|---|---|---|
| committer | 2016-03-06 17:28:36 +0100 | |
| commit | f6d781833afa33d97829e091728cf1c3c78d775d (patch) | |
| tree | 3ec0a9195e4fe42381d775268164d50b07c0f98c /app/Controllers/feedController.php | |
| parent | 604c104d0827494fefe2d5ea2eac5b28b6a9c26f (diff) | |
| parent | 7f91dbf16dca9f824b7bbbd42ef34f39ac7c22a9 (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-x | app/Controllers/feedController.php | 2 |
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 |
