tbrehm
2011-09-22 5f221a9599ce7998a5fc0ecd0422f2529928f078
Fixed bugs in updater.
3 files modified
5 ■■■■ changed files
install/autoupdate.php 1 ●●●● patch | view | raw | blame | history
install/lib/update.lib.php 3 ●●●● patch | view | raw | blame | history
install/update.php 1 ●●●● patch | view | raw | blame | history
install/autoupdate.php
@@ -156,6 +156,7 @@
//* initialize the database
$inst->db = new db();
$inst->db->dbName = $conf["mysql"]["database"];
/*
 * The next line is a bit tricky!
install/lib/update.lib.php
@@ -286,7 +286,8 @@
    }
    $new_ini = array_to_ini($tpl_ini_array);
    $inst->db->query("UPDATE server SET config = '".mysql_real_escape_string($new_ini)."' WHERE server_id = ".$conf['server_id']);
    $sql = "UPDATE server SET config = '".mysql_real_escape_string($new_ini)."' WHERE server_id = ".$conf['server_id'];
    $inst->db->query($sql);
    unset($old_ini_array);
    unset($tpl_ini_array);
    unset($new_ini);
install/update.php
@@ -152,6 +152,7 @@
//* initialize the database
$inst->db = new db();
$inst->db->dbName = $conf["mysql"]["database"];
//* initialize the master DB, if we have a multiserver setup
if($conf['mysql']['master_slave_setup'] == 'y') {