From: moodler Date: Tue, 18 May 2004 14:14:47 +0000 (+0000) Subject: Suppress warnings on set_time_limit X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=1bf4c862056a0fee55aad74cab27d8083a0915e3;p=moodle.git Suppress warnings on set_time_limit --- diff --git a/lib/phpmailer/mailerc.php b/lib/phpmailer/mailerc.php index bc4905fb12..eae2a9f0d0 100644 --- a/lib/phpmailer/mailerc.php +++ b/lib/phpmailer/mailerc.php @@ -22,7 +22,7 @@ $cargc = $_SERVER["argc"]; define("PROG_VERSION", "0.01"); define("PROG_NAME", $cargv[0]); -set_time_limit(0); // unlimited +@set_time_limit(0); // unlimited // Ignore warning messages error_reporting(E_ERROR); diff --git a/mod/forum/lib.php b/mod/forum/lib.php index 2ce16fff07..d35c62696f 100644 --- a/mod/forum/lib.php +++ b/mod/forum/lib.php @@ -267,7 +267,7 @@ function forum_cron () { } /// GWD: reset timelimit so that script does not get timed out when posting to many users - set_time_limit(10); + @set_time_limit(0); /// Override the language and timezone of the "current" user, so that /// mail is customised for the receiver. diff --git a/mod/workshop/submissions.php b/mod/workshop/submissions.php index 333f54c5f7..e9209ca39b 100644 --- a/mod/workshop/submissions.php +++ b/mod/workshop/submissions.php @@ -197,7 +197,7 @@ elseif ($action == 'analysisofassessments') { // timeout after 10 minutes - set_time_limit(600); + @set_time_limit(600); if (!isteacher($course->id)) { error("Only teachers can look at this page");