suppress duplicate locations in connedit, issue #111
This commit is contained in:
parent
00132cd977
commit
11c8cabf28
@ -666,6 +666,10 @@ function connedit_content(&$a) {
|
|||||||
|
|
||||||
if($locs) {
|
if($locs) {
|
||||||
foreach($locs as $l) {
|
foreach($locs as $l) {
|
||||||
|
if(!($l['location']))
|
||||||
|
continue;
|
||||||
|
if(strpos($locstr,$l['location']) !== false)
|
||||||
|
continue;
|
||||||
if(strlen($locstr))
|
if(strlen($locstr))
|
||||||
$locstr .= ', ';
|
$locstr .= ', ';
|
||||||
$locstr .= $l['location'];
|
$locstr .= $l['location'];
|
||||||
|
Reference in New Issue
Block a user