X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=library%2FASNValue.class.php;h=7c17d10b405c230db4496da28795d9602c73ce5a;hb=b8de34928f28747edc2a5995300a775828c25de9;hp=8a6aced97de187fac2c8400743280a643f8fd1e7;hpb=ec52010e1662cd37640096b65d60fd26fbe6c172;p=friendica.git diff --git a/library/ASNValue.class.php b/library/ASNValue.class.php index 8a6aced97d..7c17d10b40 100644 --- a/library/ASNValue.class.php +++ b/library/ASNValue.class.php @@ -110,7 +110,7 @@ class ASNValue function SetIntBuffer($Value) { if (strlen($Value) > 1) { - $firstByte = ord($Value{0}); + $firstByte = ord($Value[0]); if ($firstByte & 0x80) { //first bit set $Value = chr(0x00) . $Value; } @@ -122,7 +122,7 @@ class ASNValue function GetIntBuffer() { $result = $this->Value; - if (ord($result{0}) == 0x00) { + if (ord($result[0]) == 0x00) { $result = substr($result, 1); } @@ -167,6 +167,3 @@ class ASNValue return $result; } } - - -?>