Merge pull request #58 from s-m/reEnableFilter-Bug

BUG fixed possibly undefined variable, fixes #57
This commit is contained in:
Will Rossiter 2012-10-13 15:08:59 -07:00
commit 56384c2e67

View File

@ -1640,6 +1640,7 @@ class Translatable extends DataExtension implements PermissionProvider {
* @return bool * @return bool
*/ */
public function augmentValidURLSegment() { public function augmentValidURLSegment() {
$reEnableFilter = false;
if(self::locale_filter_enabled()) { if(self::locale_filter_enabled()) {
self::disable_locale_filter(); self::disable_locale_filter();
$reEnableFilter = true; $reEnableFilter = true;