Problem/Motivation

Route condition fails eval if no routes are defined. In other words, the "Routes" configuration is totally blank.

Proposed resolution

Change $routes = explode("\n", $routes); to $routes = array_filter(explode("\n", $routes)); to remove empty key values.

CommentFileSizeAuthor
#3 3306341-2.patch968 bytesbobooon
Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

robphillips created an issue. See original summary.

bobooon’s picture

Status: Active » Needs review
StatusFileSize
new968 bytes

svendecabooter’s picture

Status: Needs review » Fixed

Thanks for the fix!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.