From 19e6dc232876a4a05bea7334c073621158dba25c Mon Sep 17 00:00:00 2001 From: Kevin Dees Date: Wed, 24 Jan 2018 09:17:33 -0500 Subject: [PATCH] fix custom routes bug --- src/Http/Routes.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/Http/Routes.php b/src/Http/Routes.php index 02d53600..db5b673d 100644 --- a/src/Http/Routes.php +++ b/src/Http/Routes.php @@ -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; } @@ -289,4 +293,4 @@ private function getPathSegments($path) return explode('/', $path); } -} \ No newline at end of file +}