aboutsummaryrefslogtreecommitdiff
path: root/app/model
diff options
context:
space:
mode:
authorThedro Neely <thedroneely@gmail.com>2022-01-08 23:57:39 -0500
committerThedro Neely <thedroneely@gmail.com>2022-01-08 23:57:39 -0500
commit9a10cc492bfcec82ed5b8641c7abc43b2d390535 (patch)
treea5b3961d677552fd1fcf84fdfb6098d3243d7785 /app/model
parentaf45e3a8317191621a7f1432e7a7c31642db2160 (diff)
downloadthedroneely.com-9a10cc492bfcec82ed5b8641c7abc43b2d390535.tar.gz
thedroneely.com-9a10cc492bfcec82ed5b8641c7abc43b2d390535.tar.bz2
thedroneely.com-9a10cc492bfcec82ed5b8641c7abc43b2d390535.zip
app/model/Navigation: Update to PHP 8
Check for 1st needle.
Diffstat (limited to 'app/model')
-rw-r--r--app/model/Navigation.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/model/Navigation.php b/app/model/Navigation.php
index 055c3ce..65de9c9 100644
--- a/app/model/Navigation.php
+++ b/app/model/Navigation.php
@@ -4,7 +4,7 @@ class Navigation
{
public function requestContains($route)
{
- return (bool) (strpos($_SERVER['REQUEST_URI'], $route) !== false);
+ return (bool) (strpos($_SERVER['REQUEST_URI'], $route) === 1);
}
public function isActive($route)