diff options
author | Thedro Neely <thedroneely@gmail.com> | 2019-04-22 14:12:24 -0400 |
---|---|---|
committer | Thedro Neely <thedroneely@gmail.com> | 2019-04-22 14:12:24 -0400 |
commit | 7b859e4da57cfd65546c4e0e488dfe877ace0969 (patch) | |
tree | 004cd430cd81adde72a4833dcfd2a04b0c18017d /app/model | |
parent | 34f6d5dce682463c84796402c84e2d5118437397 (diff) | |
download | thedroneely.com-7b859e4da57cfd65546c4e0e488dfe877ace0969.tar.gz thedroneely.com-7b859e4da57cfd65546c4e0e488dfe877ace0969.tar.bz2 thedroneely.com-7b859e4da57cfd65546c4e0e488dfe877ace0969.zip |
app/model/Navigation: Use substring count
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 0e4542a..d30f514 100644 --- a/app/model/Navigation.php +++ b/app/model/Navigation.php @@ -12,7 +12,7 @@ class Navigation public function isActiveHome() { - if ($_SERVER['REQUEST_URI'] === '/') { + if (substr_count($_SERVER['REQUEST_URI'], '/') === 1) { return 'navbar__active '; } return; |