From b23cef4ca852c2ad63e01caca205853aaabb13a9 Mon Sep 17 00:00:00 2001 From: Mike Macgirvin Date: Mon, 18 Dec 2023 05:51:37 +1100 Subject: [PATCH] fixes from hz --- Code/Lib/Config.php | 2 +- boot.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Code/Lib/Config.php b/Code/Lib/Config.php index c2b4edcd7..308a477ff 100644 --- a/Code/Lib/Config.php +++ b/Code/Lib/Config.php @@ -38,7 +38,7 @@ class Config if (! array_key_exists('config_loaded', App::$config[$family])) { $r = q("SELECT * FROM config WHERE cat = '%s'", dbesc($family)); - if ($r === false) { + if ($r === false && !App::$install) { sleep(3); $recursionCounter ++; if ($recursionCounter > 10) { diff --git a/boot.php b/boot.php index bcc0c8cf3..28f178ab2 100755 --- a/boot.php +++ b/boot.php @@ -777,7 +777,7 @@ function x($s, $k = null) { * @ref include/system_unavailable.php will handle everything further. */ function system_unavailable() { - include('include/system_unavailable.php'); + require_once('include/system_unavailable.php'); system_down(); killme(); }