Skip to content
Snippets Groups Projects
Commit f6c1156d authored by Wolfgang Ocker's avatar Wolfgang Ocker
Browse files

Small patch to recent changes list

In the "recent changes" list I've seen some artefacts. This patch
fixes them.

darcs-hash:20060109211929-6ddad-2f467e426b661fb978160c0bfd419abd50537931.gz
parent c1a2ae1f
No related branches found
No related tags found
No related merge requests found
......@@ -733,7 +733,11 @@ function getRecents($first,$num,$ns='',$flags=0){
// now read backwards into buffer
while($pos > 0){
$pos -= $csz; // seek to previous chunk...
if($pos < 0) $pos = 0; // ...or rest of file
if($pos < 0) { // ...or rest of file
$csz += $pos;
$pos = 0;
}
fseek($fh,$pos);
$buf = fread($fh,$csz).$buf; // prepend to buffer
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment