More buffer flush while printing unsorted lists
[busui.git] / stopList.php
blob:a/stopList.php -> blob:b/stopList.php
--- a/stopList.php
+++ b/stopList.php
@@ -31,6 +31,7 @@
 		foreach ($suburbs as $suburb) {
 			if (startsWith($suburb, $_REQUEST['firstLetter'])) {
 				echo '<li><a href="stopList.php?suburb=' . urlencode($suburb) . '">' . $suburb . '</a></li>';
+				flush(); @ob_flush();
 			}
 		}
 	}
@@ -101,6 +102,7 @@
 					}
 					echo bracketsMeanNewLine(trim(preg_replace("/\(Platform.*/", "", $row[1])) . '(' . sizeof($stopsGrouped["stop_ids"]) . ' stops)');
 					echo "</a></li>\n";
+					flush(); @ob_flush();
 					$stopsGrouped = Array();
 				}
 				else {
@@ -113,6 +115,7 @@
 					}
 					echo bracketsMeanNewLine($row[1]);
 					echo "</a></li>\n";
+					flush(); @ob_flush();
 				}
 			}
 			else {