From 47536f89a26c3245bb905403968d4e9eaed49456 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Wed, 21 Oct 2020 14:38:04 -0600 Subject: [PATCH] Update index.php Deprecate the upgrade_data_types variable and use the php class data_types variable. --- core/upgrade/index.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/core/upgrade/index.php b/core/upgrade/index.php index 45ef27cafe..1b1308e47c 100644 --- a/core/upgrade/index.php +++ b/core/upgrade/index.php @@ -86,9 +86,11 @@ // load an array of the database schema and compare it with the active database if ($do["schema"] && permission_exists("upgrade_schema")) { - $upgrade_data_types = check_str($do["data_types"]); require_once "resources/classes/schema.php"; $obj = new schema(); + if (isset($do["data_types"]) && $do["data_types"] == 'true') { + $obj->data_types = true; + } $_SESSION["response"]["schema"] = $obj->schema("html"); message::add($text['message-upgrade_schema'], null, $message_timeout); } @@ -283,4 +285,4 @@ //include the footer require_once "resources/footer.php"; -?> \ No newline at end of file +?>