Merge pull request #151 from patbolo/fix/script-timeout-csv

Fix/script timeout csv
This commit is contained in:
Will Rossiter 2013-08-13 23:10:41 -07:00
commit 39979a6bbc

View File

@ -77,6 +77,8 @@ class SubmittedFormReportField extends FormField {
* @return HTTPResponse / bool
*/
public function export($id = false) {
// The default max execution time is sometimes not enough for large number of submissions
increase_time_limit_to(600);
if($id && is_int($id)) {
$SQL_ID = $id;
}