MDL-48456 course: Using default max int value
authorDavid Monllao <davidm@moodle.com>
Mon, 23 Mar 2015 07:16:18 +0000 (15:16 +0800)
committerDavid Monllao <davidm@moodle.com>
Mon, 23 Mar 2015 07:16:18 +0000 (15:16 +0800)
lib/coursecatlib.php

index e4956b9..d9609b4 100644 (file)
@@ -1563,7 +1563,7 @@ class coursecat implements renderable, cacheable_object, IteratorAggregate {
         require_once($CFG->dirroot.'/cohort/lib.php');
 
         // Make sure we won't timeout when deleting a lot of courses.
-        $settimeout = core_php_time_limit::raise('0');
+        $settimeout = core_php_time_limit::raise();
 
         $deletedcourses = array();