summaryrefslogtreecommitdiff
path: root/includes/functions
diff options
context:
space:
mode:
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.'";