From e9f001aa5d45bb928af9332f1d24cb54bf9fdb86 Mon Sep 17 00:00:00 2001 From: Sandro Santilli Date: Wed, 23 Sep 2015 11:39:36 +0200 Subject: [PATCH] Use ampersend to separate postopts, and explicit test for empty string --- include/items.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/items.php b/include/items.php index 4c41ae115f..40409bb897 100644 --- a/include/items.php +++ b/include/items.php @@ -1127,7 +1127,7 @@ function item_add_language_opt(&$arr) { $lng = $l->detect($naked_body, 3); if (sizeof($lng) > 0) { - if ($postopts) $postopts .= '^'; // arbitrary separator, to be reviewed + if ($postopts != "") $postopts .= '&'; // arbitrary separator, to be reviewed $postopts .= 'lang='; $sep = ""; foreach ($lng as $language => $score) { -- 2.39.5