mirror of
https://github.com/catalyst/moodle-auth_outage.git
synced 2026-05-17 05:48:43 +02:00
Issue #80 - Problem with PHP below 5.6.3 fixed.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user