]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Error page fix: use class static accessor correctly, suppress notices if we don't...
authorBrion Vibber <brion@pobox.com>
Wed, 4 Nov 2009 16:36:27 +0000 (08:36 -0800)
committerBrion Vibber <brion@pobox.com>
Thu, 5 Nov 2009 09:58:38 +0000 (10:58 +0100)
lib/error.php

index 6a9b76be11b97391f41ac13292ed76f38bdeba2a..3162cfe656f30c701a429f1cb6aaec6ded14e8a3 100644 (file)
@@ -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)