projects
/
fa-stable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fixed db_close() helper.
[fa-stable.git]
/
includes
/
db
/
connect_db.inc
diff --git
a/includes/db/connect_db.inc
b/includes/db/connect_db.inc
index 0a81693bc38fccec5988835170d3bcd62d251fc2..ed706fe31401ef82b8f1b15215551c51bd47a243 100644
(file)
--- a/
includes/db/connect_db.inc
+++ b/
includes/db/connect_db.inc
@@
-203,9
+203,13
@@
function db_drop_db($connection)
}
}
-function db_close($db = null)
+function db_close($db
ase
= null)
{
- return mysql_close($db);
+ global $db;
+
+ if (!$dbase)
+ $dbase = $db;
+ return mysql_close($dbase);
}
?>
\ No newline at end of file