Commit fa40f244 authored by Dries's avatar Dries
Browse files

- Patch #20235 by chx: fixed problem with db_set_active().

parent 0f24a527
......@@ -28,7 +28,7 @@ function db_connect($url) {
$url['host'] = $url['host'] .':'. $url['port'];
$connection = mysql_connect($url['host'], $url['user'], $url['pass']) or die(mysql_error());
$connection = mysql_connect($url['host'], $url['user'], $url['pass'], TRUE) or die(mysql_error());
mysql_select_db(substr($url['path'], 1)) or die('unable to select database');
return $connection;
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