git.gnu.io has moved to IP address 209.51.188.249 -- please double check where you are logging in.

Commit 2bb93438 authored by Brion Vibber's avatar Brion Vibber

Error page fix: use class static accessor correctly, suppress notices if we...

Error page fix: use class static accessor correctly, suppress notices if we don't have the error code listed
parent 2fc01dc7
......@@ -70,7 +70,7 @@ class ErrorAction extends Action
*/
function extraHeaders()
{
$status_string = $this->status[$this->code];
$status_string = @self::$status[$this->code];
header('HTTP/1.1 '.$this->code.' '.$status_string);
}
......@@ -92,7 +92,7 @@ class ErrorAction extends Action
function title()
{
return self::$status[$this->code];
return @self::$status[$this->code];
}
function isReadOnly($args)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment