Commit 8b57d94d authored by Thomas Löffler's avatar Thomas Löffler

Parse argument of setcookie() to string

parent 8316f87b
Pipeline #593 passed with stage
in 13 seconds
......@@ -368,7 +368,7 @@ class LanguageDetection extends AbstractPlugin
if ($this->cookieLifetime) {
setcookie(
$this->extKey . '_languageSelected',
$this->conf['useOneTreeMethod'] ? $preferredLanguageOrPageUid : true,
(string)($this->conf['useOneTreeMethod'] ? $preferredLanguageOrPageUid : true),
$this->cookieLifetime + time()
);
} else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment