fix for Debian Bug#569677: egroupware-core: base configuration fails with php error if egroupware-emailadmin is not installed

This commit is contained in:
Ralf Becker 2010-02-15 02:58:58 +00:00
parent 0c640ed171
commit 0affaddfb2

View File

@ -43,7 +43,7 @@ function mail_server($settings)
{ {
$GLOBALS['config_error'] = lang('Missing or uncomplete mailserver configuration'); $GLOBALS['config_error'] = lang('Missing or uncomplete mailserver configuration');
} }
if (@file_exists('../emailadmin/inc/class.emailadmin_bo.inc.php') && $GLOBALS['egw_setup']->table_exist(array('egw_emailadmin')) || true) if (@file_exists('../emailadmin/inc/class.emailadmin_bo.inc.php') && $GLOBALS['egw_setup']->table_exist(array('egw_emailadmin')))
{ {
$emailadmin = new emailadmin_bo(-1,false); // false=no session stuff $emailadmin = new emailadmin_bo(-1,false); // false=no session stuff
if (is_object($emailadmin)) if (is_object($emailadmin))