Browse Source

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

pull/1899/head
Sandro Santilli 6 years ago
parent
commit
e9f001aa5d
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      include/items.php

+ 1
- 1
include/items.php 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) {


Loading…
Cancel
Save