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:59:33 +00:00
parent df8581e1f6
commit 003d1c1c94

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))