MDL-42084 lib: fix undefined variable warnings

This commit is contained in:
Dan Poltawski
2013-12-03 14:00:21 +08:00
parent 4ab19f9c71
commit 0b2f11dbc3
+1 -1
View File
@@ -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;