diff options
Diffstat (limited to 'inc/changelog.php')
-rw-r--r-- | inc/changelog.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/inc/changelog.php b/inc/changelog.php index def785f43..f60b487db 100644 --- a/inc/changelog.php +++ b/inc/changelog.php @@ -250,7 +250,7 @@ function getRevisionInfo($id, $rev, $chunk_size=8192) { $got = 0; fseek($fp, $head); while ($got<$chunk_size && !feof($fp)) { - $tmp = fread($fp, max($chunk_size-$got, 0)); + $tmp = @fread($fp, max($chunk_size-$got, 0)); if ($tmp===false) { break; } //error state $got += strlen($tmp); $chunk .= $tmp; @@ -335,7 +335,7 @@ function getRevisions($id, $first, $num, $chunk_size=8192) { $read_size = max($tail-$finger, 0); // found chunk size $got = 0; while ($got<$read_size && !feof($fp)) { - $tmp = fread($fp, max($read_size-$got, 0)); + $tmp = @fread($fp, max($read_size-$got, 0)); if ($tmp===false) { break; } //error state $got += strlen($tmp); $chunk .= $tmp; |