summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBrion Vibber <brion@pobox.com>2009-11-04 08:36:27 -0800
committerBrion Vibber <brion@pobox.com>2009-11-05 10:58:38 +0100
commit2bb93438a1664aa13a5a23b8600a7579a6eaa4c5 (patch)
tree585aa7c5c4d06a9782e8ee4f7ba1aca4515a2424 /lib
parent2fc01dc7d150e138d2b70e34d8aa816781dfdd36 (diff)
Error page fix: use class static accessor correctly, suppress notices if we don't have the error code listed
Diffstat (limited to 'lib')
-rw-r--r--lib/error.php4
1 files changed, 2 insertions, 2 deletions
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)