// Include an admin message that we're updating the database
$startupNotices .= '<p>The '.$a['name'].' database tables require updating...</p>';
- // Check if current glmMembersDatabaseDbVersion is invalid
- if (!in_array($a['database']['dbCurrentVersion'], $a['database']['dbVersions'])) {
- $startupNotices .= '<p>The database version currently installed for this plugin is unknown. '
- .'Unable to install/update the '.$a['name'].' plugin.</p>';
- }
-
// Traverse version list to find any required updates
$curVerFound = false;
$db_setup_status = true;
// If there were no errors
if ($queryError == '') {
$startupNotices .= '<p>The database for the '.$a['name'].' plugin has been updated '
- .'from V'.$dbVersion.'_V'.$ver.'.</p>';
+ .'from V'.$dbVersion.' to V'.$ver.'.</p>';
} else {
$startupNotices .= '<p>Failure updating the database tables for the '.$a['name'].' plugin '
- .'from V'.$dbVersion.'_V'.$ver.'.</p>';
+ .'from V'.$dbVersion.' to V'.$ver.'.</p>';
$db_setup_status = false;
$startupNotices .= '<p>Database Update Error:</b> '.$queryError.'</p>';
}