Use ampersend to separate postopts, and explicit test for empty string

This commit is contained in:
Sandro Santilli 2015-09-23 11:39:36 +02:00
parent 741b82ccab
commit e9f001aa5d
1 changed files with 1 additions and 1 deletions

View File

@ -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) {