diff --git a/infolog/inc/class.boinfolog.inc.php b/infolog/inc/class.boinfolog.inc.php index 4d7e05cd4a..cd932ff40f 100644 --- a/infolog/inc/class.boinfolog.inc.php +++ b/infolog/inc/class.boinfolog.inc.php @@ -74,8 +74,13 @@ if (!is_array($account_data)) { - $GLOBALS['phpgw']->accounts->read_repository(); - $account_data = $GLOBALS['phpgw']->accounts->data; + if (!isset($this->account_data[$id])) // do some cacheing + { + $GLOBALS['phpgw']->accounts->accounts($id); + $GLOBALS['phpgw']->accounts->read_repository(); + $this->account_data[$id] = $GLOBALS['phpgw']->accounts->data; + } + $account_data = $this->account_data[$id]; } if ($GLOBALS['phpgw_info']['user']['preferences']['infolog']['longNames']) {