summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGreg Roach <fisharebest@gmail.com>2015-02-11 08:07:19 +0000
committerGreg Roach <fisharebest@gmail.com>2015-02-11 08:07:19 +0000
commit877890d4906b230b94dac373fd8a259be6a4440e (patch)
tree55a2461f6c45774a847680010cafe3c0d75565b2
parented1bbedb76022c67d88c564e725d96d59bf3f861 (diff)
downloadwebtrees-877890d4906b230b94dac373fd8a259be6a4440e.tar.gz
webtrees-877890d4906b230b94dac373fd8a259be6a4440e.tar.bz2
webtrees-877890d4906b230b94dac373fd8a259be6a4440e.zip
Fix: 1420478 - relationship path length shown as no for all data
-rw-r--r--admin_users.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/admin_users.php b/admin_users.php
index 521b60bf96..f058748758 100644
--- a/admin_users.php
+++ b/admin_users.php
@@ -629,7 +629,7 @@ case 'edit':
<td>
<select name="RELATIONSHIP_PATH_LENGTH<?php echo $tree->getTreeId(); ?>" id="RELATIONSHIP_PATH_LENGTH<?php echo $tree->getTreeId(); ?>" class="relpath">
<?php for ($n = 0; $n <= 10; ++$n): ?>
- <option value="<?php echo $n; ?>" <?php echo $tree->getUserPreference($user, 'RELATIONSHIP_PATH_LENGTH') === $n ? 'checked' : ''; ?>>
+ <option value="<?php echo $n; ?>" <?php echo $tree->getUserPreference($user, 'RELATIONSHIP_PATH_LENGTH') == $n ? 'selected' : ''; ?>>
<?php echo $n ? $n : I18N::translate('No'); ?>
</option>
<?php endfor; ?>