fixed PHP Fatal error: Call to a member function MetaTables() on a non-object, when non-default apps like esyncpro got installed/updated

This commit is contained in:
Ralf Becker 2014-07-15 11:07:26 +00:00
parent 16c5a62ed4
commit f472ff10ee
2 changed files with 2 additions and 1 deletions

View File

@ -105,6 +105,7 @@ class db_backup
}
$this->db = $this->schema_proc->m_odb;
if (!$this->db->Link_ID) $this->db->connect();
$this->adodb = $this->db->Link_ID;
if (isset($GLOBALS['egw_setup']) && is_object($GLOBALS['egw_setup'])) // called from setup
{

View File

@ -112,7 +112,7 @@ class schema_proc
$this->m_odb->connect();
$this->capabilities =& $this->m_odb->capabilities;
$this->sType = $dbms ? $dmbs : $this->m_odb->Type;
$this->sType = $dbms ? $dbms : $this->m_odb->Type;
$this->adodb = &$this->m_odb->Link_ID;
$this->dict = NewDataDictionary($this->adodb);