fixed bug on creation of db via setup (SQL error on setting up the grants)

This commit is contained in:
Ralf Becker 2004-03-28 12:10:08 +00:00
parent 0f8224fd47
commit 8af7e93dac

View File

@ -719,6 +719,10 @@
*/
function create_database($adminname = '', $adminpasswd = '')
{
$currentUser = $this->User;
$currentPassword = $this->Password;
$currentDatabase = $this->Database;
$extra = array();
switch ($this->type)
{
@ -733,10 +737,6 @@
echo "<p>db::create_database(user='$adminname',\$pw) not yet implemented for DB-type '$this->type'</p>\n";
break;
}
$currentUser = $this->User;
$currentPassword = $this->Password;
$currentDatabase = $this->Database;
if ($adminname != '')
{
$this->User = $adminname;