Home
Documentation
Downloads
Demo
Tracker
Development
Translation
Moodle.net
Search
projects
/
moodle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4ab19f9
)
MDL-42084 lib: fix undefined variable warnings
author
Dan Poltawski
<dan@moodle.com>
Tue, 3 Dec 2013 05:23:31 +0000
(13:23 +0800)
committer
Dan Poltawski
<dan@moodle.com>
Tue, 3 Dec 2013 06:00:21 +0000
(14:00 +0800)
lib/classes/php_time_limit.php
patch
|
blob
|
blame
|
history
diff --git
a/lib/classes/php_time_limit.php
b/lib/classes/php_time_limit.php
index
6416afa
..
b7be4f2
100644
(file)
--- a/
lib/classes/php_time_limit.php
+++ b/
lib/classes/php_time_limit.php
@@
-71,7
+71,7
@@
class core_php_time_limit {
// server systems; if the front-end server has a timeout without receiving
// data, it's helpful to set this timeout lower to ensure that a suitable
// error gets logged.
- if (
$CFG->maxtimelimit
) {
+ if (
!empty($CFG->maxtimelimit)
) {
$realtimeout = max(1, $CFG->maxtimelimit);
if ($newlimit === 0) {
$newlimit = $realtimeout;