- Patch #15337 by Gerhard: fixed bug in upgrade path. The 'update_start' variable got corrupted.

4.5.x
Dries Buytaert 2005-01-13 19:25:30 +00:00
parent 114ed8da76
commit 906e08411d
1 changed files with 7 additions and 0 deletions

View File

@ -85,6 +85,13 @@ function update_page() {
print update_page_footer();
break;
default:
// NOTE: We need the following five lines in order to fix a bug with database.mysql (http://drupal.org/node/15337)
// We should be able to remove them in the future.
$result = db_query("SELECT * FROM variable WHERE name = 'update_start' AND value LIKE '%;\"'");
if ($variable = db_fetch_object($result)) {
$variable->value = unserialize(substr($variable->value, 0, -2) .'";');
variable_set('update_start', $variable->value);
}
$start = variable_get("update_start", 0);
$dates[] = "All";
$i = 1;