]> git.mjollnir.org Git - moodle.git/commitdiff
Suppress warnings on set_time_limit
authormoodler <moodler>
Tue, 18 May 2004 14:14:47 +0000 (14:14 +0000)
committermoodler <moodler>
Tue, 18 May 2004 14:14:47 +0000 (14:14 +0000)
lib/phpmailer/mailerc.php
mod/forum/lib.php
mod/workshop/submissions.php

index bc4905fb12a4cefb93b8e5bdea769c278356d4b5..eae2a9f0d091f728e5eeb6e4c0d5ae922556bb4e 100644 (file)
@@ -22,7 +22,7 @@ $cargc = $_SERVER["argc"];
 \r
 define("PROG_VERSION", "0.01");\r
 define("PROG_NAME", $cargv[0]);\r
-set_time_limit(0); // unlimited\r
+@set_time_limit(0); // unlimited\r
 \r
 // Ignore warning messages\r
 error_reporting(E_ERROR);\r
index 2ce16fff07857688cc126d3c42ba90c56142846a..d35c62696f82a026f30632f201a68763c9b47582 100644 (file)
@@ -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.
index 333f54c5f79daa87520ae402dce370c8f2ee3a9a..e9209ca39bbd1910d45ec705e1ba2dc8356e175e 100644 (file)
        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");