Code Duplication    Length = 6-6 lines in 3 locations

htdocs/search.php 3 locations

@@ 2412-2417 (lines=6) @@
2409
        $thislocation = $locline;
2410
2411
        $locString = '';
2412
        if ($r['admtxt1'] != '') {
2413
            if ($locString != '') {
2414
                $locString .= ' > ';
2415
            }
2416
            $locString .= htmlspecialchars($r['admtxt1'], ENT_COMPAT, 'UTF-8');
2417
        }
2418
        if ($r['admtxt2'] != '') {
2419
            if ($locString != '') {
2420
                $locString .= ' > ';
@@ 2418-2423 (lines=6) @@
2415
            }
2416
            $locString .= htmlspecialchars($r['admtxt1'], ENT_COMPAT, 'UTF-8');
2417
        }
2418
        if ($r['admtxt2'] != '') {
2419
            if ($locString != '') {
2420
                $locString .= ' > ';
2421
            }
2422
            $locString .= htmlspecialchars($r['admtxt2'], ENT_COMPAT, 'UTF-8');
2423
        }
2424
        if ($r['admtxt4'] != '') {
2425
            if ($locString != '') {
2426
                $locString .= ' > ';
@@ 2424-2429 (lines=6) @@
2421
            }
2422
            $locString .= htmlspecialchars($r['admtxt2'], ENT_COMPAT, 'UTF-8');
2423
        }
2424
        if ($r['admtxt4'] != '') {
2425
            if ($locString != '') {
2426
                $locString .= ' > ';
2427
            }
2428
            $locString .= htmlspecialchars($r['admtxt4'], ENT_COMPAT, 'UTF-8');
2429
        }
2430
2431
        $thislocation = mb_ereg_replace('{parentlocations}', $locString, $thislocation);
2432