Permalink
Browse files

store filtered data to `$this->data` before returning, fixes #6

  • Loading branch information...
1 parent 7e90a12 commit 1c70ee69c95fcbc9a7392345a55dc8afe218f33c @benbalter benbalter committed Jan 5, 2013
Showing with 4 additions and 2 deletions.
  1. +4 −2 class.csv-to-api.php
@@ -79,8 +79,10 @@ function parse() {
$this->set_cache( $key, $this->data, $this->ttl );
}
-
- return $this->query( $this->data );
+
+ $this->data = $this->query( $this->data );
+
+ return $this->data;
}

0 comments on commit 1c70ee6

Please sign in to comment.