Commit 7d479c01 authored by Leigh Stoller's avatar Leigh Stoller

Fix warning.

parent 99103974
......@@ -717,6 +717,8 @@ if (!mysql_select_db($TBDBNAME)) {
#
function DBConnect($dbname)
{
global $SCRIPT_NAME;
$linkid = mysql_connect("localhost", basename($SCRIPT_NAME), "none", 1);
if ($linkid) {
if (!mysql_select_db($dbname, $linkid)) {
......
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