mirror of
https://github.com/catalyst/moodle-auth_outage.git
synced 2026-05-16 21:41:31 +02:00
Issue #80 - Problem with PHP below 5.6.3 fixed.
This commit is contained in:
@@ -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