catching empty serverclass in getIMAPLogin Times; taking care of new entrys while tracking changes

This commit is contained in:
Klaus Leithoff 2010-09-30 13:54:25 +00:00
parent 9272642663
commit 5d17c31867
2 changed files with 2 additions and 1 deletions

View File

@ -327,7 +327,7 @@ class emailadmin_bo extends so_sql
if (!($result = parent::save()))
{
$GLOBALS['egw']->contenthistory->updateTimeStamp('emailadmin_profiles', $this->data['ea_profile_id'], $old === false ? 'add' : 'modify', time());
$this->tracking->track($content,$old,null,false,null,true);
$this->tracking->track($content,(is_array($old)?$old:array()),null,false,null,true);
}
return $result;
}

View File

@ -231,6 +231,7 @@ class emailadmin_ui extends emailadmin_bo
static function getIMAPLoginTypes($serverclass='defaultimap')
{
if (empty($serverclass)) $serverclass = 'defaultimap';
//error_log(__METHOD__.' called with:'.$serverclass." with capabilities:".parent::$IMAPServerType[$serverclass]['imapcapabilities']);
$returnval = array(
'standard' => lang('username (standard)'),