mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-24 17:04:14 +01:00
Remove none existing mail connectionTimeout preference. Fixes warning of Undefined array key 'connectionTimeout'.
This commit is contained in:
parent
60536222ce
commit
ab8a7d4c23
@ -1000,9 +1000,7 @@ class Mail
|
||||
*/
|
||||
static function getTimeOut($_use='IMAP')
|
||||
{
|
||||
$timeout = $GLOBALS['egw_info']['user']['preferences']['mail']['connectionTimeout'];
|
||||
if (empty($timeout)) $timeout = ($_use=='SIEVE'?10:20); // this is the default value
|
||||
return $timeout;
|
||||
return $_use=='SIEVE' ? 10 : 20; // this is the default value
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -360,9 +360,7 @@ class Imap extends Horde_Imap_Client_Socket implements Imap\PushIface
|
||||
*/
|
||||
static function getTimeOut($_use='IMAP')
|
||||
{
|
||||
if (empty($timeout = $GLOBALS['egw_info']['user']['preferences']['mail']['connectionTimeout']) || !((int)$timeout > 0))
|
||||
$timeout = $_use == 'SIEVE' ? 10 : 20; // this is the default value
|
||||
return $timeout;
|
||||
return $_use == 'SIEVE' ? 10 : 20; // this is the default value
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user