diff options
| author | Greg Roach <fisharebest@gmail.com> | 2017-07-16 17:21:06 +0100 |
|---|---|---|
| committer | Greg Roach <fisharebest@gmail.com> | 2017-07-16 17:21:06 +0100 |
| commit | 686bfc01decf7497b152eb51fafa1af1b2f50f45 (patch) | |
| tree | 909ff854112fac5425c1c8b724efc1dc1b770fd6 | |
| parent | dbf8cb11dd7721a7d6a459c72db45001d8ae073d (diff) | |
| download | webtrees-686bfc01decf7497b152eb51fafa1af1b2f50f45.tar.gz webtrees-686bfc01decf7497b152eb51fafa1af1b2f50f45.tar.bz2 webtrees-686bfc01decf7497b152eb51fafa1af1b2f50f45.zip | |
Fix #1218 - Missing media titles are not duplicates
| -rw-r--r-- | admin_trees_duplicates.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/admin_trees_duplicates.php b/admin_trees_duplicates.php index f41e0c458a..3e4aee248d 100644 --- a/admin_trees_duplicates.php +++ b/admin_trees_duplicates.php @@ -114,7 +114,7 @@ $families = array_map( $media = Database::prepare( "SELECT GROUP_CONCAT(m_id) AS xrefs " . " FROM `##media`" . - " WHERE m_file = :tree_id" . + " WHERE m_file = :tree_id AND m_titl <> ''" . " GROUP BY m_titl" . " HAVING COUNT(m_id) > 1" )->execute([ |
