From 2bb93438a1664aa13a5a23b8600a7579a6eaa4c5 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Wed, 4 Nov 2009 08:36:27 -0800 Subject: Error page fix: use class static accessor correctly, suppress notices if we don't have the error code listed --- lib/error.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/error.php') diff --git a/lib/error.php b/lib/error.php index 6a9b76be1..3162cfe65 100644 --- a/lib/error.php +++ b/lib/error.php @@ -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) -- cgit v1.2.3-54-g00ecf