summaryrefslogtreecommitdiff
path: root/update.php
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2005-01-13 19:24:27 +0000
committerDries Buytaert <dries@buytaert.net>2005-01-13 19:24:27 +0000
commit6d8d934cd31b1315b9158fae0370a4b2eff9de05 (patch)
tree2d315eec9b6de5652ac71b93b23b9814b004b30b /update.php
parent5314b9a14cc42b4cab0aead75518e94748e6cadd (diff)
downloadbrdo-6d8d934cd31b1315b9158fae0370a4b2eff9de05.tar.gz
brdo-6d8d934cd31b1315b9158fae0370a4b2eff9de05.tar.bz2
- Patch #15337 by Gerhard: fixed bug in upgrade path. The 'update_start' variable got corrupted.
Diffstat (limited to 'update.php')
-rw-r--r--update.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/update.php b/update.php
index 179423d8e..dfe78f984 100644
--- a/update.php
+++ b/update.php
@@ -85,6 +85,15 @@ 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 (issue #15337). We should be able to remove
+ // this work around 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;