• Модуль: tasks
  • Путь к файлу: ~/bitrix/modules/tasks/classes/general/taskcomments.php
  • Класс: CTaskComments
  • Вызов: CTaskComments::getOccurAsUserId
static function getOccurAsUserId($messageAuthorId)
{
	$occurAsUserId = CTasksTools::getOccurAsUserId();
	if ( ! $occurAsUserId )
		$occurAsUserId = ($messageAuthorId ? $messageAuthorId : 1);

	return $messageAuthorId;
}