diff --git a/etemplate/inc/class.db_tools.inc.php b/etemplate/inc/class.db_tools.inc.php index e3cb5236ee..90f84c8ac8 100644 --- a/etemplate/inc/class.db_tools.inc.php +++ b/etemplate/inc/class.db_tools.inc.php @@ -185,7 +185,7 @@ } else // import { - $schema_app = $this->editor->stable ? 'etemplate' : 'phpgwapi'; // this is for 0.9.14 + $schema_app = !file_exists(PHPGW_API_INC.'/class.schema_proc.inc.php') ? 'etemplate' : 'phpgwapi'; // this is for 0.9.14 $oProc = CreateObject($schema_app.'.schema_proc',$GLOBALS['phpgw_info']['server']['db_type']); $oProc->m_odb = $GLOBALS['phpgw']->db; $oProc->m_oTranslator->_GetColumns($oProc,$content['new_table_name'],$nul);