aboutsummaryrefslogtreecommitdiffstats
path: root/mod/connedit.php
diff options
context:
space:
mode:
authorredmatrix <redmatrix@redmatrix.me>2015-11-08 20:41:11 -0800
committerredmatrix <redmatrix@redmatrix.me>2015-11-08 20:41:11 -0800
commit11c8cabf28a23383979ceb33ec8264ae2b732f3e (patch)
tree233053843f91ef4600f193bbd228cdf00d8f93fd /mod/connedit.php
parent00132cd977ee74550b100836aa16e936bc1a90b5 (diff)
downloadvolse-hubzilla-11c8cabf28a23383979ceb33ec8264ae2b732f3e.tar.gz
volse-hubzilla-11c8cabf28a23383979ceb33ec8264ae2b732f3e.tar.bz2
volse-hubzilla-11c8cabf28a23383979ceb33ec8264ae2b732f3e.zip
suppress duplicate locations in connedit, issue #111
Diffstat (limited to 'mod/connedit.php')
-rw-r--r--mod/connedit.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/mod/connedit.php b/mod/connedit.php
index ad311f9a4..9c46fa999 100644
--- a/mod/connedit.php
+++ b/mod/connedit.php
@@ -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'];