No need to unwrap to an array
Since OpenPGP_Message implements the array interface
This commit is contained in:
parent
975fc2ff7e
commit
1a1b8980e6
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user