Issue #80 - Problem with PHP below 5.6.3 fixed.

This commit is contained in:
Daniel Thee Roperto
2016-11-17 15:26:02 +11:00
parent e1524a10bb
commit 659a275a68
2 changed files with 1 additions and 2 deletions

View File

@@ -35,7 +35,6 @@ install:
- moodle-plugin-ci install
script:
- echo "nothing to do"
- moodle-plugin-ci phplint
- moodle-plugin-ci phpcpd
- moodle-plugin-ci phpmd

View File

@@ -275,7 +275,7 @@ class maintenance_static_page_generator {
$meta->setAttribute('http-equiv', 'refresh');
$meta->setAttribute('content', $this->refreshtime);
$head = $this->dom->getElementsByTagName('head')[0];
$head = $this->dom->getElementsByTagName('head')->item(0);
if ($head) {
$head->appendChild($meta);
}