suppress duplicate locations in connedit, issue #111

This commit is contained in:
redmatrix 2015-11-08 20:41:11 -08:00
parent 00132cd977
commit 11c8cabf28

View File

@ -666,6 +666,10 @@ function connedit_content(&$a) {
if($locs) {
foreach($locs as $l) {
if(!($l['location']))
continue;
if(strpos($locstr,$l['location']) !== false)
continue;
if(strlen($locstr))
$locstr .= ', ';
$locstr .= $l['location'];