From 1a1b8980e6c6a985415f1fd85ad16e8400caa2b1 Mon Sep 17 00:00:00 2001 From: Stephen Paul Weber Date: Wed, 31 Mar 2010 14:26:14 -0500 Subject: [PATCH] No need to unwrap to an array Since OpenPGP_Message implements the array interface --- lib/openpgp.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/openpgp.php b/lib/openpgp.php index f99c24f..2b6074d 100644 --- a/lib/openpgp.php +++ b/lib/openpgp.php @@ -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