diff --git a/phpgwapi/inc/class.db.inc.php b/phpgwapi/inc/class.db.inc.php index fe6b464d23..aaddc7cee3 100644 --- a/phpgwapi/inc/class.db.inc.php +++ b/phpgwapi/inc/class.db.inc.php @@ -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 "
db::create_database(user='$adminname',\$pw) not yet implemented for DB-type '$this->type'
\n"; break; } - $currentUser = $this->User; - $currentPassword = $this->Password; - $currentDatabase = $this->Database; - if ($adminname != '') { $this->User = $adminname;