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

View File

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