Error page fix: use class static accessor correctly, suppress notices if we don't have the error code listed
This commit is contained in:
parent
2fc01dc7d1
commit
2bb93438a1
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user