Skip to content

Commit

Permalink
Clarify some comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrubinsk committed Jan 21, 2015
1 parent 4bd1e7c commit ce8ff75
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions framework/Compress/lib/Horde/Compress/Tnef.php
Expand Up @@ -315,8 +315,9 @@ protected function _extractMapiAttributes($data)
// PROPERTY_NAME_SPACE contains the GUID for the named property
// namespace.
$this->_getx($data, 16);
$named_type = $this->_geti($data, 32);

// The type of named property, an ID or STRING.
$named_type = $this->_geti($data, 32);
switch ($named_type) {
case self::MAPI_NAMED_TYPE_ID:
$attr_name =$this->_geti($data, 32);
Expand All @@ -330,7 +331,7 @@ protected function _extractMapiAttributes($data)
$id_len = $this->_geti($data, 32);
$data_len = $id_len + ((4 - ($id_len % 4)) % 4);
$this->_logger->debug(sprintf(
'TNEF: Named Id: %s',
'TNEF: Named String Id: %s',
substr($this->_getx($data, $data_len)), 0, $id_len)
);
break;
Expand Down

0 comments on commit ce8ff75

Please sign in to comment.