4
0
Эх сурвалжийг харах

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.
ColonelMoutarde 8 жил өмнө
parent
commit
1b8ab5199b

+ 1 - 1
app/views/helpers/export/articles.phtml

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