From: Brion Vibber Date: Wed, 4 Nov 2009 16:36:27 +0000 (-0800) Subject: Error page fix: use class static accessor correctly, suppress notices if we don't... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=2bb93438a1664aa13a5a23b8600a7579a6eaa4c5;p=quix0rs-gnu-social.git Error page fix: use class static accessor correctly, suppress notices if we don't have the error code listed --- diff --git a/lib/error.php b/lib/error.php index 6a9b76be11..3162cfe656 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)