diff --git a/infolog/inc/class.infolog_bo.inc.php b/infolog/inc/class.infolog_bo.inc.php index 10ad1618f1..199e1cfc6f 100644 --- a/infolog/inc/class.infolog_bo.inc.php +++ b/infolog/inc/class.infolog_bo.inc.php @@ -1052,6 +1052,32 @@ class infolog_bo return $ret; } + /** + * Query ctag for infolog + * + * @param string $filter='own' + * @param string|array $types='task' + * @return string + */ + public function getctag(array $filter) + { + $filter += array( + 'order' => 'info_datemodified', + 'sort' => 'DESC', + 'date_format' => 'server', + 'start' => 0, + 'num_rows' => 1, + ); + + $result =& $this->search($filter); + + if (empty($result)) return 'EGw-empty-wGE'; + + $entry = array_shift($result); + + return 'EGw-'.$entry['info_datemodified'].'-wGE'; + } + /** * imports a mail identified by uid as infolog *