Commit 99e9f868 authored by Dries's avatar Dries
Browse files

- Patch #7575 by ax: not in global scope, making updates fail.

parent 0e6221a1
......@@ -29,8 +29,7 @@ function db_prefix_tables($sql) {
* @param $name The named connection specified in the $db_url variable.
*/
function db_set_active($name = 'default') {
global $db_url;
global $active_db;
global $db_url, $db_type, $active_db;
static $db_conns;
if (!isset($db_conns[$name])) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment