Use ampersend to separate postopts, and explicit test for empty string
This commit is contained in:
parent
741b82ccab
commit
e9f001aa5d
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue