fix to be able to use the new select, update, ... functions during eGW startup (eg. accounts-class)

This commit is contained in:
Ralf Becker 2004-07-04 17:31:12 +00:00
parent e7917423a5
commit b40f691a78

View File

@ -1070,8 +1070,10 @@
{
$app = $this->app ? $this->app : $GLOBALS['phpgw_info']['flags']['currentapp'];
}
$app_data = &$GLOBALS['phpgw_info']['apps'][$app];
if (isset($GLOBALS['phpgw_info']['apps'])) // this happens during the eGW startup, dont set it then !!!
{
$app_data = &$GLOBALS['phpgw_info']['apps'][$app];
}
if (!isset($app_data['table_defs']))
{
$tables_current = PHPGW_INCLUDE_ROOT . "/$app/setup/tables_current.inc.php";