From 25d7c67051c37e4121700e121415d19ab7dc7435 Mon Sep 17 00:00:00 2001 From: Charles Severance Date: Wed, 15 May 2024 11:05:31 -0400 Subject: [PATCH] Fix top nav with no parent site. --- src/UI/Output.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/UI/Output.php b/src/UI/Output.php index 035556fe..d8f99c5f 100644 --- a/src/UI/Output.php +++ b/src/UI/Output.php @@ -771,7 +771,11 @@ function defaultMenuSet() { $R = $CFG->wwwroot . '/'; $set = new \Tsugi\UI\MenuSet(); - $set->setHome($CFG->servicename, $CFG->apphome); + if ( is_string($CFG->apphome) ) { + $set->setHome($CFG->servicename, $CFG->apphome); + } else { + $set->setHome($CFG->servicename, $R); + } $set->addLeft(_m('Tools'), $R.'store'); if ( $this->session_get('id') ) { $set->addLeft(_m('Settings'), $R . 'settings');