mirror of
https://github.com/catalyst/moodle-auth_outage.git
synced 2026-10-22 18:18:07 +02:00
Issue #80 - Problem with PHP below 5.6.3 fixed.
This commit is contained in:
1 parent
e1524a10bb
commit
659a275a68
2 files changed
+1
-2
No files matched your search
@@ -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