diff options
| author | Greg Roach <fisharebest@gmail.com> | 2013-12-16 21:23:50 +0000 |
|---|---|---|
| committer | Greg Roach <fisharebest@gmail.com> | 2013-12-16 21:23:50 +0000 |
| commit | 9688c385861aaffcba5d0dcbfcec7b7eed1b75e2 (patch) | |
| tree | 119fed1e2b9e7e2b85753a60aeb5acd82cb1232f /modules_v3/html/module.php | |
| parent | a3c69ea9e8ef9a3c63cb653745d9c5539928d33c (diff) | |
| download | webtrees-9688c385861aaffcba5d0dcbfcec7b7eed1b75e2.tar.gz webtrees-9688c385861aaffcba5d0dcbfcec7b7eed1b75e2.tar.bz2 webtrees-9688c385861aaffcba5d0dcbfcec7b7eed1b75e2.zip | |
HTML block - selecting default tree when there is no default tree causes fatal error
Diffstat (limited to 'modules_v3/html/module.php')
| -rw-r--r-- | modules_v3/html/module.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules_v3/html/module.php b/modules_v3/html/module.php index 333d929797..abc0605a18 100644 --- a/modules_v3/html/module.php +++ b/modules_v3/html/module.php @@ -59,7 +59,7 @@ class html_WT_Module extends WT_Module implements WT_Module_Block { case '__default__': $GEDCOM=WT_Site::preference('DEFAULT_GEDCOM'); if (!$GEDCOM) { - foreach (WT_Trees::getAll() as $tree) { + foreach (WT_Tree::getAll() as $tree) { $GEDCOM=$tree->tree_name; break; } |
