From 881d6b037507b9d01b267dd600f8977ac361100c Mon Sep 17 00:00:00 2001
From: Thomas Bruederli <thomas@roundcube.net>
Date: Thu, 06 Mar 2014 07:17:52 -0500
Subject: [PATCH] Revert "Implement ArrayAccess interface for conveniently accessing rcube_result_set as array"

---
 program/lib/Roundcube/rcube_result_set.php |   30 +-----------------------------
 1 files changed, 1 insertions(+), 29 deletions(-)

diff --git a/program/lib/Roundcube/rcube_result_set.php b/program/lib/Roundcube/rcube_result_set.php
index 82502ce..a4b070e 100644
--- a/program/lib/Roundcube/rcube_result_set.php
+++ b/program/lib/Roundcube/rcube_result_set.php
@@ -25,7 +25,7 @@
  * @package    Framework
  * @subpackage Addressbook
  */
-class rcube_result_set implements Iterator, ArrayAccess
+class rcube_result_set implements Iterator
 {
     public $count = 0;
     public $first = 0;
@@ -59,34 +59,6 @@
     function seek($i)
     {
         $this->current = $i;
-    }
-
-    /*** Implement PHP ArrayAccess interface ***/
-
-    public function offsetSet($offset, $value)
-    {
-        if (is_null($offset)) {
-            $offset = count($this->records);
-            $this->records[] = $value;
-        }
-        else {
-            $this->records[$offset] = $value;
-        }
-    }
-
-    public function offsetExists($offset)
-    {
-        return isset($this->records[$offset]);
-    }
-
-    public function offsetUnset($offset)
-    {
-        unset($this->records[$offset]);
-    }
-
-    public function offsetGet($offset)
-    {
-        return $this->records[$offset];
     }
 
     /***  PHP 5 Iterator interface  ***/

--
Gitblit v1.9.1