aboutsummaryrefslogtreecommitdiff
path: root/ratatoeskr/frontend.php
diff options
context:
space:
mode:
authorLaria Carolin Chabowski <laria@laria.me>2021-01-01 20:00:14 +0100
committerLaria Carolin Chabowski <laria@laria.me>2021-01-01 20:00:14 +0100
commit3a415231d36a48c48f51e1161b11160654961f73 (patch)
treec6e5b5e3134d76ef635b51259f97c13781f74705 /ratatoeskr/frontend.php
parent946416df57e1217f8f260e71076362ed0974c047 (diff)
downloadratatoeskr-cms-3a415231d36a48c48f51e1161b11160654961f73.tar.gz
ratatoeskr-cms-3a415231d36a48c48f51e1161b11160654961f73.tar.bz2
ratatoeskr-cms-3a415231d36a48c48f51e1161b11160654961f73.zip
Fix path handling bug
Diffstat (limited to 'ratatoeskr/frontend.php')
-rw-r--r--ratatoeskr/frontend.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/ratatoeskr/frontend.php b/ratatoeskr/frontend.php
index 09d04d4..dc76177 100644
--- a/ratatoeskr/frontend.php
+++ b/ratatoeskr/frontend.php
@@ -760,7 +760,7 @@ function frontend_url_handler(&$data, $url_now, &$url_next)
/* If no language or an invalid language was given, fix it. */
if ((count($path) == 0) or (!isset($languages[$path[0]]))) {
- if (count($path > 0)) {
+ if (count($path) > 0) {
array_shift($path);
}
array_unshift($path, $ratatoeskr_settings["default_language"]);