silverstripe/silverstripe-framework — pull request #2790 by kmayo-ss (2014-01-20 03:39:55+00:00)
Title: BUG: Stop undefined error for $reEnableFilter being thrown

In the method augmentValidURLSegment a if (checking for locale_filter_enabled) statement declares a variable reEnableFilter, outside of the if statement but still inside the method the variable is accessed which can throw a undefined error if the locale filter was never enabled.

Added a isset check wrapper to stop the undefined error being thrown.