Permalink
Browse files

Start DB transaction in update script

Fixes #1124.
  • Loading branch information...
franzliedke committed Nov 25, 2018
1 parent e00a78b commit 75e4e24f23085dff171cdcd6fa2fc2f61c37b944
Showing with 2 additions and 0 deletions.
  1. +2 −0 db_update.php
@@ -112,6 +112,8 @@ function stripslashes_array($array)
// Load DB abstraction layer and try to connect
require PUN_ROOT.'include/dblayer/common_db.php';
$db->start_transaction();
// Check what the default character set is - since 1.2 didn't specify any we will use whatever the default was (usually latin1)
$old_connection_charset = defined('FORUM_DEFAULT_CHARSET') ? FORUM_DEFAULT_CHARSET : $db->get_names();

0 comments on commit 75e4e24

Please sign in to comment.