From 4ef917196ae6ef9ac9291f910403613bc9201858 Mon Sep 17 00:00:00 2001 From: Greg Roach Date: Wed, 11 Feb 2015 19:15:22 +0000 Subject: Fix #431 --- includes/session.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/includes/session.php b/includes/session.php index b94a7b22d4..83910802f0 100644 --- a/includes/session.php +++ b/includes/session.php @@ -443,6 +443,12 @@ foreach (array(Filter::post('ged'), Filter::get('ged'), $WT_SESSION->GEDCOM, Sit break; } } +// No chosen tree? Use any one. +if (!$WT_TREE) { + foreach (Tree::getAll() as $WT_TREE) { + break; + } +} // These attributes of the currently-selected tree are used frequently if ($WT_TREE) { -- cgit v1.3