fix no longer working db-creation after 6dfe752b7f allow to switch whole database readonly

This commit is contained in:
Ralf Becker 2017-03-13 16:40:22 +01:00
parent bb5a845600
commit 4a147c74a1
2 changed files with 3 additions and 1 deletions

View File

@ -504,6 +504,8 @@ abstract class admin_cmd
case 'accounts': case 'accounts':
self::_instanciate_accounts(); self::_instanciate_accounts();
return self::$accounts; return self::$accounts;
case 'data':
return $this->data;
} }
return $this->data[$property]; return $this->data[$property];
} }

View File

@ -141,7 +141,7 @@ class setup_cmd_database extends setup_cmd
private function connect($user=null,$pass=null,$name=null) private function connect($user=null,$pass=null,$name=null)
{ {
// propagate all db_* vars // propagate all db_* vars
$this->test_db = new Api\Db(get_object_vars($this)); $this->test_db = new Api\Db($this->data);
$error_rep = error_reporting(); $error_rep = error_reporting();
error_reporting($error_rep & ~E_WARNING); // switch warnings off, in case they are on error_reporting($error_rep & ~E_WARNING); // switch warnings off, in case they are on