Skip to content
Snippets Groups Projects
Commit 9a01fb1d authored by Klap-in's avatar Klap-in
Browse files

Add some breaks to while loops.

parent ce2f6047
No related branches found
No related tags found
No related merge requests found
......@@ -697,6 +697,7 @@ function getRelativeRevision($id, $rev, $direction, $chunk_size = 8192, $media =
if($lookpointer) {
$tail = $head + floor(($tail - $head) / 2);
}
if($tail == $head) break;
}
} else {
$tail = $head;
......@@ -706,6 +707,7 @@ function getRelativeRevision($id, $rev, $direction, $chunk_size = 8192, $media =
//load next chunck
$lines = readChunk($fp, $head, $tail);
if(empty($lines)) break;
}
}
if($uses_chuncks) {
......
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