From 0a5c9f405eca1b51c194cc4ba76f2dedf4f21952 Mon Sep 17 00:00:00 2001
From: Chuck Scott
Date: Thu, 6 Apr 2017 14:00:04 -0400
Subject: [PATCH] Fixed some issues with database update messages in admin.
---
index.php | 10 ++--------
1 file changed, 2 insertions(+), 8 deletions(-)
diff --git a/index.php b/index.php
index be39b898..e955f141 100644
--- a/index.php
+++ b/index.php
@@ -606,12 +606,6 @@ function glmCheckDatabase ()
// Include an admin message that we're updating the database
$startupNotices .= 'The '.$a['name'].' database tables require updating...
';
- // Check if current glmMembersDatabaseDbVersion is invalid
- if (!in_array($a['database']['dbCurrentVersion'], $a['database']['dbVersions'])) {
- $startupNotices .= 'The database version currently installed for this plugin is unknown. '
- .'Unable to install/update the '.$a['name'].' plugin.
';
- }
-
// Traverse version list to find any required updates
$curVerFound = false;
$db_setup_status = true;
@@ -655,10 +649,10 @@ function glmCheckDatabase ()
// If there were no errors
if ($queryError == '') {
$startupNotices .= 'The database for the '.$a['name'].' plugin has been updated '
- .'from V'.$dbVersion.'_V'.$ver.'.
';
+ .'from V'.$dbVersion.' to V'.$ver.'.
';
} else {
$startupNotices .= 'Failure updating the database tables for the '.$a['name'].' plugin '
- .'from V'.$dbVersion.'_V'.$ver.'.
';
+ .'from V'.$dbVersion.' to V'.$ver.'.';
$db_setup_status = false;
$startupNotices .= 'Database Update Error: '.$queryError.'
';
}
--
2.17.1