aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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"]);