diff options
author | redmatrix <redmatrix@redmatrix.me> | 2015-11-08 20:41:11 -0800 |
---|---|---|
committer | redmatrix <redmatrix@redmatrix.me> | 2015-11-08 20:41:11 -0800 |
commit | 11c8cabf28a23383979ceb33ec8264ae2b732f3e (patch) | |
tree | 233053843f91ef4600f193bbd228cdf00d8f93fd /mod/connedit.php | |
parent | 00132cd977ee74550b100836aa16e936bc1a90b5 (diff) | |
download | volse-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.php | 4 |
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']; |