From 69fb44643fefba169ba591a097db00b708e26067 Mon Sep 17 00:00:00 2001 From: Eduardo Mozart de Oliveira <2974895+eduardomozart@users.noreply.github.com> Date: Fri, 5 Jan 2024 20:39:19 -0300 Subject: [PATCH] Fix INNODB Unset message on MariaDB Similar to https://github.com/Cacti/cacti/issues/5030 The original scripts checks if MariaDB is 11 to not check if INNODB variable doesn't exists, but it was removed on 10.10 and not on 11. This fixes an issue that fixes the UNSET message on Cacti 1.1.25 on Windows All-in-One installer. --- lib/utility.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/utility.php b/lib/utility.php index 9bd1ac8d1d..fa190f6e4b 100644 --- a/lib/utility.php +++ b/lib/utility.php @@ -1001,7 +1001,7 @@ function utilities_get_mysql_recommendations() { } else { if (version_compare($link_ver, '5.2', '>=')) { if (!isset($variables['innodb_version']) && - ($database == 'MySQL' || ($database == 'MariaDB' && version_compare($link_ver, '11.0', '<')))) { + ($database == 'MySQL' || ($database == 'MariaDB' && version_compare($link_ver, '10.10', '<')))) { $recommendations += array( 'innodb' => array(