summaryrefslogtreecommitdiff
path: root/includes/functions
diff options
context:
space:
mode:
authorfisharebest <fisharebest@gmail.com>2010-04-18 21:54:46 +0000
committerfisharebest <fisharebest@gmail.com>2010-04-18 21:54:46 +0000
commitfe7cda0b409e31b7055889ee6a1acef6eafc9947 (patch)
treeb5c7b93c8c8821c4c09bb45644fa6a1ccc3d799f /includes/functions
parentc48724f5c4e0b2051d751a0b54a160deac93de56 (diff)
downloadwebtrees-fe7cda0b409e31b7055889ee6a1acef6eafc9947.tar.gz
webtrees-fe7cda0b409e31b7055889ee6a1acef6eafc9947.tar.bz2
webtrees-fe7cda0b409e31b7055889ee6a1acef6eafc9947.zip
Fix: famlist showing all families instead of initial letters
Diffstat (limited to 'includes/functions')
-rw-r--r--includes/functions/functions_db.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/functions/functions_db.php b/includes/functions/functions_db.php
index 62b31f6f37..3a16557486 100644
--- a/includes/functions/functions_db.php
+++ b/includes/functions/functions_db.php
@@ -389,7 +389,7 @@ function get_famlist_surns($surn, $salpha, $marnm, $ged_id) {
$where[]="n_surn = ''";
} elseif ($salpha) {
// Match a surname initial
- $where[]="n_surn LIKE ".WT_DB::quote("{$surn}%")." COLLATE '".i18n::$collation."'";
+ $where[]="n_surn LIKE ".WT_DB::quote("{$salpha}%")." COLLATE '".i18n::$collation."'";
} else {
// Match all individuals
$where[]="n_surn <> '@N.N.'";