]> git.mxchange.org Git - friendica.git/commitdiff
Use ampersend to separate postopts, and explicit test for empty string
authorSandro Santilli <strk@keybit.net>
Wed, 23 Sep 2015 09:39:36 +0000 (11:39 +0200)
committerSandro Santilli <strk@keybit.net>
Wed, 23 Sep 2015 09:39:36 +0000 (11:39 +0200)
include/items.php

index 4c41ae115f3a5809854237d13a3c059b59abf5a1..40409bb8974748b4fcd5e5775ac0b1ce33bd56b2 100644 (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) {