Преглед на файлове

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 години
родител
ревизия
1b8ab5199b
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      app/views/helpers/export/articles.phtml

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