Fix little problem inserting check.data

This commit is contained in:
Julio Cesar Laura
2015-07-28 09:55:05 -04:00
parent 150725acd8
commit 6b84189fdc
2 changed files with 5 additions and 1 deletions

View File

@@ -446,7 +446,7 @@ class workspaceTools
*/
private function getDatabase($rbac = false)
{
if (isset($this->db) && $this->db->isConnected() && $rbac == false) {
if (isset($this->db) && $this->db->isConnected() && ($rbac == false && $this->db->getDatabaseName() == $this->dbName)) {
return $this->db;
}