diff options
author | Thedro Neely <thedroneely@gmail.com> | 2019-04-30 20:50:34 -0400 |
---|---|---|
committer | Thedro Neely <thedroneely@gmail.com> | 2019-04-30 20:50:34 -0400 |
commit | b348e8f87431623bb398eb13d3784157a82339a3 (patch) | |
tree | 3a9c5647baa96951424539303d23d87ffc7a2908 /app/model | |
parent | 7267aff8c01d2fd9568de3a48f8fdf9840e9be5d (diff) | |
download | thedroneely.com-b348e8f87431623bb398eb13d3784157a82339a3.tar.gz thedroneely.com-b348e8f87431623bb398eb13d3784157a82339a3.tar.bz2 thedroneely.com-b348e8f87431623bb398eb13d3784157a82339a3.zip |
app/model/Navigation: Just use strlen for home page check
Diffstat (limited to 'app/model')
-rw-r--r-- | app/model/Navigation.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/model/Navigation.php b/app/model/Navigation.php index d30f514..bfe9616 100644 --- a/app/model/Navigation.php +++ b/app/model/Navigation.php @@ -12,7 +12,7 @@ class Navigation public function isActiveHome() { - if (substr_count($_SERVER['REQUEST_URI'], '/') === 1) { + if (strlen($_SERVER['REQUEST_URI']) === 1) { return 'navbar__active '; } return; |