From 3a415231d36a48c48f51e1161b11160654961f73 Mon Sep 17 00:00:00 2001 From: Laria Carolin Chabowski Date: Fri, 1 Jan 2021 20:00:14 +0100 Subject: Fix path handling bug --- ratatoeskr/frontend.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ratatoeskr/frontend.php') 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"]); -- cgit v1.2.3-70-g09d2