From 11c8cabf28a23383979ceb33ec8264ae2b732f3e Mon Sep 17 00:00:00 2001 From: redmatrix Date: Sun, 8 Nov 2015 20:41:11 -0800 Subject: suppress duplicate locations in connedit, issue #111 --- mod/connedit.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'mod/connedit.php') 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']; -- cgit v1.2.3