diff options
author | Klap-in <klapinklapin@gmail.com> | 2013-01-28 01:39:57 +0100 |
---|---|---|
committer | Klap-in <klapinklapin@gmail.com> | 2013-01-28 01:39:57 +0100 |
commit | 9a01fb1de9ece0c4d37cb331e51e3b0b7dcf75a8 (patch) | |
tree | 7d39be7aacdc34a7b9555ce27e46564eae95ecda /inc | |
parent | ce2f604739dc66e32e05f7078ada1711fe387979 (diff) | |
download | rpg-9a01fb1de9ece0c4d37cb331e51e3b0b7dcf75a8.tar.gz rpg-9a01fb1de9ece0c4d37cb331e51e3b0b7dcf75a8.tar.bz2 |
Add some breaks to while loops.
Diffstat (limited to 'inc')
-rw-r--r-- | inc/changelog.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/inc/changelog.php b/inc/changelog.php index d2be5b2db..c5c1c8246 100644 --- a/inc/changelog.php +++ b/inc/changelog.php @@ -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) { |