|
@@ 1610-1615 (lines=6) @@
|
| 1607 |
|
$ged_data = Database::prepare("SELECT i_gedcom FROM `##individuals` WHERE i_gedcom LIKE ? AND i_file=?") |
| 1608 |
|
->execute(array("%\n2 PLAC %", $gedcom_id)) |
| 1609 |
|
->fetchOneColumn(); |
| 1610 |
|
foreach ($ged_data as $ged_datum) { |
| 1611 |
|
preg_match_all('/\n2 PLAC (.+)/', $ged_datum, $matches); |
| 1612 |
|
foreach ($matches[1] as $match) { |
| 1613 |
|
$place_list[$match] = true; |
| 1614 |
|
} |
| 1615 |
|
} |
| 1616 |
|
$ged_data = Database::prepare("SELECT f_gedcom FROM `##families` WHERE f_gedcom LIKE ? AND f_file=?") |
| 1617 |
|
->execute(array("%\n2 PLAC %", $gedcom_id)) |
| 1618 |
|
->fetchOneColumn(); |
|
@@ 1619-1624 (lines=6) @@
|
| 1616 |
|
$ged_data = Database::prepare("SELECT f_gedcom FROM `##families` WHERE f_gedcom LIKE ? AND f_file=?") |
| 1617 |
|
->execute(array("%\n2 PLAC %", $gedcom_id)) |
| 1618 |
|
->fetchOneColumn(); |
| 1619 |
|
foreach ($ged_data as $ged_datum) { |
| 1620 |
|
preg_match_all('/\n2 PLAC (.+)/', $ged_datum, $matches); |
| 1621 |
|
foreach ($matches[1] as $match) { |
| 1622 |
|
$place_list[$match] = true; |
| 1623 |
|
} |
| 1624 |
|
} |
| 1625 |
|
// Unique list of places |
| 1626 |
|
$place_list = array_keys($place_list); |
| 1627 |
|
|