Permalink
Browse files

Fix #2

  • Loading branch information...
1 parent 0379b8c commit 886b3e30dbcb202c10e463f50dd67e9cafcf746f unknown committed Aug 14, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 catalog/includes/functions/cache.php
@@ -57,7 +57,7 @@ function read_cache(&$var, $filename, $auto_expire = false){
// try to open file
if ($fp = @fopen(gzinflate($filename, 'r'))) {
// read in serialized data
- $szdata = stream_get_contents($fp, filesize($filename));
+ $szdata = fread($fp, filesize($filename));
fclose($fp);
// unserialze the data

0 comments on commit 886b3e3

Please sign in to comment.