Skip to content

Commit

Permalink
fix custom routes bug
Browse files Browse the repository at this point in the history
  • Loading branch information
kevindees authored Jan 24, 2018
1 parent c909457 commit 19e6dc2
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/Http/Routes.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,11 @@ public function spoofRewrite( $value)
}
$add[$key] = 'index.php?tr_route_var=1';

$value = array_merge($add, $value);
if(is_array($value)) {
$value = array_merge($add, $value);
} else {
$value = $add;
}
}
return $value;
}
Expand Down Expand Up @@ -289,4 +293,4 @@ private function getPathSegments($path)
return explode('/', $path);
}

}
}

0 comments on commit 19e6dc2

Please sign in to comment.