aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-03-02 19:02:27 +0000
committermarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-03-02 19:02:27 +0000
commit25bf95704e0ead1005057c5739b1a26025f3602c (patch)
tree2b5e6b5ae45d90cdf3d1b807aa7d093a685b722b
parent34516b2c1128d9eff00310a49fd02116159b94e6 (diff)
downloadelgg-25bf95704e0ead1005057c5739b1a26025f3602c.tar.gz
elgg-25bf95704e0ead1005057c5739b1a26025f3602c.tar.bz2
Limitless queries now supported
git-svn-id: https://code.elgg.org/elgg/trunk@3021 36083f99-b078-4883-b0ff-0f9b5a30f544
-rw-r--r--engine/lib/cache.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/engine/lib/cache.php b/engine/lib/cache.php
index 191c7c004..8932f4ca7 100644
--- a/engine/lib/cache.php
+++ b/engine/lib/cache.php
@@ -368,8 +368,10 @@
$f = $this->create_file($this->sanitise_filename($key));
if ($f)
{
- fseek($f, $offset);
+ //fseek($f, $offset);
+ if (!$limit) $limit = -1;
$data = stream_get_contents($f, $limit, $offset);
+
fclose($f);
return $data;