From 49e2f1b41e39a3fd61c709fb953889f6f9fc90b3 Mon Sep 17 00:00:00 2001 From: Nate Date: Tue, 3 Nov 2020 12:16:00 -0700 Subject: [PATCH] Update resources/require.php - Don't require switch.php if not present (framework support). --- resources/require.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/resources/require.php b/resources/require.php index 6561af7ee9..fe9aeba991 100644 --- a/resources/require.php +++ b/resources/require.php @@ -72,7 +72,9 @@ require_once "resources/functions.php"; if ($config_exists) { require "resources/pdo.php"; - require_once "resources/switch.php"; + if (file_exists("resources/switch.php")) { + require_once "resources/switch.php"; + } } //change language on the fly - for translate tool (if available)