diff options
author | Ludovic Arnaud <ludovic_arnaud@users.sourceforge.net> | 2003-01-31 02:13:12 +0000 |
---|---|---|
committer | Ludovic Arnaud <ludovic_arnaud@users.sourceforge.net> | 2003-01-31 02:13:12 +0000 |
commit | 2e20478640c077c05cf44e2ae828eabaa893ccfe (patch) | |
tree | 09ae73f776f1eb8aba33bb22dbdd105da9cad614 | |
parent | dc26ed59601dfcc22b093911286cd9f13f9261ce (diff) | |
download | forums-2e20478640c077c05cf44e2ae828eabaa893ccfe.tar forums-2e20478640c077c05cf44e2ae828eabaa893ccfe.tar.gz forums-2e20478640c077c05cf44e2ae828eabaa893ccfe.tar.bz2 forums-2e20478640c077c05cf44e2ae828eabaa893ccfe.tar.xz forums-2e20478640c077c05cf44e2ae828eabaa893ccfe.zip |
Use array_shift to fetch cached rows.
git-svn-id: file:///svn/phpbb/trunk@3438 89ea8834-ac86-4346-8a33-228a782c2dd0
-rw-r--r-- | phpBB/includes/acm/cache_file.php | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/phpBB/includes/acm/cache_file.php b/phpBB/includes/acm/cache_file.php index c9b4008a50..d666007c86 100644 --- a/phpBB/includes/acm/cache_file.php +++ b/phpBB/includes/acm/cache_file.php @@ -26,7 +26,6 @@ class acm var $modified = FALSE; var $sql_rowset = array(); - var $sql_rowset_index = array(); function acm() { @@ -173,7 +172,6 @@ class acm $query_id = 'Cache id #' . count($this->sql_rowset); $this->sql_rowset[$query_id] = $rowset; - $this->sql_rowset_index[$query_id] = 0; $db->query_result = $query_id; return true; @@ -189,7 +187,6 @@ class acm $lines = array(); $query_id = 'Cache id #' . count($this->sql_rowset); $this->sql_rowset[$query_id] = array(); - $this->sql_rowset_index[$query_id] = 0; $db->query_result = $query_id; while ($row = $db->sql_fetchrow($result)) @@ -217,17 +214,7 @@ class acm function sql_fetchrow($query_id) { - //return array_shift($this->sql_rowset[$query_id]); - - if (!isset($this->sql_rowset[$query_id][$this->sql_rowset_index[$query_id]])) - { - return false; - } - - $row = $this->sql_rowset[$query_id][$this->sql_rowset_index[$query_id]]; - ++$this->sql_rowset_index[$query_id]; - - return $row; + return array_shift($this->sql_rowset[$query_id]); } } ?>
\ No newline at end of file |