fix the failure: Cannot modify header information

This commit is contained in:
xmujay 2013-07-12 22:56:02 +08:00
parent e257c17588
commit 9ee4bb0efd

View File

@ -56,9 +56,9 @@ function process_formset(FormDisplay $form_display)
<?php
} else {
// drop post data
header('HTTP/1.1 303 See Other');
header('Location: index.php');
if (!defined('TESTSUITE')) {
header('HTTP/1.1 303 See Other');
header('Location: index.php');
exit;
}
}