Skip to content

Commit

Permalink
MDL-24276 improved coding style
Browse files Browse the repository at this point in the history
  • Loading branch information
skodak committed Sep 19, 2010
1 parent 7c109ea commit e691a37
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
5 changes: 4 additions & 1 deletion admin/cron.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,10 @@
}

// no more headers and buffers
while(@ob_end_flush());
@ob_implicit_flush(true);
while(ob_get_level()) {
ob_end_clean();
}

// execute the cron
cron_run();
Expand Down
6 changes: 2 additions & 4 deletions admin/health.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,9 @@

// extra whitespace test - intentionally breaks cookieless mode
$extraws = '';
while (true) {
while (ob_get_level()) {
$extraws .= ob_get_contents();
if (!@ob_end_clean()) {
break;
}
ob_end_clean();
}

require_once($CFG->libdir.'/adminlib.php');
Expand Down

0 comments on commit e691a37

Please sign in to comment.