fix redirects
[mdref/mdref] / mdref / File.php
index 6add1d56b7221df4bba940c0fcbc4f96ad3a57f3..3c1ca0a6d276e37314178606f336d595ad3137c2 100644 (file)
@@ -70,7 +70,7 @@ class File {
        public function readFullDescription() : ?string {
                $desc = $this->readDescription();
                while (false !== ($line = fgets($this->fd))) {
-                       if ($line{0} === "#") {
+                       if ($line[0] === "#") {
                                break;
                        } else {
                                $desc .= $line;