From: Chuck Scott Date: Thu, 6 Apr 2017 18:00:04 +0000 (-0400) Subject: Fixed some issues with database update messages in admin. X-Git-Tag: v2.9.15^2~50^2~1 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=0a5c9f405eca1b51c194cc4ba76f2dedf4f21952;p=WP-Plugins%2Fglm-member-db.git Fixed some issues with database update messages in admin. --- 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.'

'; }