summaryrefslogtreecommitdiff
path: root/app/Controller/BranchesController.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Controller/BranchesController.php')
-rw-r--r--app/Controller/BranchesController.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/Controller/BranchesController.php b/app/Controller/BranchesController.php
index ccd6215c5f..1e5609b54f 100644
--- a/app/Controller/BranchesController.php
+++ b/app/Controller/BranchesController.php
@@ -112,7 +112,7 @@ class BranchesController extends PageController {
$args = array($WT_TREE->getTreeId(), '_MARNM', $this->surname, $this->surname);
if ($this->soundex_std) {
$sdx = Soundex::russell($this->surname);
- if ($sdx) {
+ if ($sdx !== null) {
foreach (explode(':', $sdx) as $value) {
$sql .= " OR n_soundex_surn_std LIKE CONCAT('%', ?, '%')";
$args[] = $value;
@@ -121,7 +121,7 @@ class BranchesController extends PageController {
}
if ($this->soundex_dm) {
$sdx = Soundex::daitchMokotoff($this->surname);
- if ($sdx) {
+ if ($sdx !== null) {
foreach (explode(':', $sdx) as $value) {
$sql .= " OR n_soundex_surn_dm LIKE CONCAT('%', ?, '%')";
$args[] = $value;