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:50 +00:00
parent 0111766987
commit cfc56a6241
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);