Explorar el Código

Fix addFeed (#5253)

Fix https://github.com/FreshRSS/FreshRSS/issues/5252
Regression from https://github.com/FreshRSS/FreshRSS/pull/5239
Alexandre Alapetite hace 3 años
padre
commit
4e2bbf820a
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      app/Controllers/feedController.php

+ 1 - 1
app/Controllers/feedController.php

@@ -48,7 +48,7 @@ class FreshRSS_feed_Controller extends FreshRSS_ActionController {
 
 		/** @var string|null $url */
 		$urlHooked = Minz_ExtensionManager::callHook('check_url_before_add', $url);
-		if ($urlHooked === $url) {
+		if ($urlHooked === null) {
 			throw new FreshRSS_FeedNotAdded_Exception($url);
 		}
 		$url = $urlHooked;