aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2023-04-03 09:46:04 +0200
committerGravatar GitHub <noreply@github.com> 2023-04-03 09:46:04 +0200
commit4e2bbf820aa905100aa0c14c7276b491c92b1971 (patch)
treec8b2d69c234e211794b6d017c00dea20e6da5f91
parent0f5e321c0b2e368adf493e1e466bec0ff900dcbd (diff)
Fix addFeed (#5253)
Fix https://github.com/FreshRSS/FreshRSS/issues/5252 Regression from https://github.com/FreshRSS/FreshRSS/pull/5239
-rw-r--r--app/Controllers/feedController.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/Controllers/feedController.php b/app/Controllers/feedController.php
index 0e98d1e16..ade465c55 100644
--- a/app/Controllers/feedController.php
+++ b/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;