Skip to content
This repository has been archived by the owner on Jan 10, 2021. It is now read-only.

Commit

Permalink
FIX, adding some further validation.
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathan authored Mar 28, 2017
1 parent 1d94402 commit 3215ab7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions code/services/MisdirectionService.php
Original file line number Diff line number Diff line change
Expand Up @@ -259,8 +259,7 @@ public function determineFallback($URL) {

// This is required to support multiple sites.

if(ClassInfo::exists('Multisites')) {
$parent = Multisites::inst()->getCurrentSite();
if(ClassInfo::exists('Multisites') && ($parent = Multisites::inst()->getCurrentSite())) {
$parentID = $parent->ID;
if($parent->Fallback) {
$applicableRule = $parent->Fallback;
Expand Down

0 comments on commit 3215ab7

Please sign in to comment.