strict comparaision for null (#1874)

With booleans and null, only strict comparison (with === operator) should be used to lower bug risks and to improve performances.
This commit is contained in:
ColonelMoutarde
2018-04-26 16:34:10 +02:00
committed by Alexandre Alapetite
parent db133f9bb3
commit 1b8ab5199b

View File

@@ -23,7 +23,7 @@ foreach ($this->entriesRaw as $entryRaw) {
$entry = FreshRSS_EntryDAO::daoToEntry($entryRaw);
if (!isset($this->feed)) {
$feed = FreshRSS_CategoryDAO::findFeed($this->categories, $entry->feed());
if ($feed == null) {
if ($feed === null) {
$feed = $entry->feed(true);
}
} else {