No need to unwrap to an array

Since OpenPGP_Message implements the array interface
This commit is contained in:
Stephen Paul Weber 2010-03-31 14:26:14 -05:00
parent 975fc2ff7e
commit 1a1b8980e6
1 changed files with 1 additions and 4 deletions

View File

@ -790,15 +790,12 @@ class OpenPGP_CompressedDataPacket extends OpenPGP_Packet implements IteratorAgg
default:
/* TODO error? */
}
if($this->data) {
$this->data = $this->data->packets;
}
}
// IteratorAggregate interface
function getIterator() {
return new ArrayIterator($this->data);
return new ArrayIterator($this->data->packets);
}
// ArrayAccess interface