From 6e65a48914298e39625e18a6e12dcf63b1c28ab9 Mon Sep 17 00:00:00 2001 From: Sebastian Grewe Date: Tue, 18 Jul 2017 15:19:29 +0200 Subject: [PATCH] [FIX] Default to bootstrap theme if none added to DB --- include/smarty_globals.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/smarty_globals.inc.php b/include/smarty_globals.inc.php index fcfdbb69..6b6930b7 100644 --- a/include/smarty_globals.inc.php +++ b/include/smarty_globals.inc.php @@ -225,7 +225,7 @@ if ($setting->getValue('website_theme') == "mpos") $_SESSION['POPUP'][] = array('CONTENT' => 'You are using an old Theme that will not be maintained in the future.', 'TYPE' => 'alert alert-warning'); // Check we can load the theme at all -if ( !in_array($setting->getValue('website_theme'), $template->getThemes())) +if ( !in_array($setting->getValue('website_theme', 'bootstrap'), $template->getThemes())) die('Unable to find your selected theme `' . $setting->getValue('website_theme') . '` in the list of available themes. Please reset your `website_theme` setting in your database.'); // So we can display additional info