Commit 16cc5eca authored by Rob Phillips's avatar Rob Phillips Committed by Sven Decabooter
Browse files

Issue #3306341: Route condition fails evaluation when no routes defined

parent 0e64e4c7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -109,7 +109,7 @@ class RouteCondition extends ConditionPluginBase implements ConditionInterface,
    // Convert routes to lowercase.
    $routes = mb_strtolower($this->configuration['routes']);
    $routes = str_replace(["\r\n", "\r"], "\n", $routes);
    $routes = explode("\n", $routes);
    $routes = array_filter(explode("\n", $routes));
    if (!$routes) {
      return TRUE;
    }