Skip to content

Commit 56465b9

Browse files
committed
Check output buffering is on before calling ob_clean()
Fix #542
1 parent cfec3c0 commit 56465b9

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

qa-include/qa-install.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,10 @@ function qa_install_db_fail_handler($type, $errno = null, $error = null, $query
5656
}
5757

5858

59-
ob_clean(); // clears any current theme output to prevent broken design
59+
if (ob_get_level() > 0) {
60+
// clears any current theme output to prevent broken design
61+
ob_clean();
62+
}
6063

6164
$success = '';
6265
$errorhtml = '';

0 commit comments

Comments
 (0)