Skip to content

Commit dc0721a

Browse files
author
Samuel Akopyan
committed
Fixed curly braces in array to []
1 parent a729ce4 commit dc0721a

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

framework/vendors/tcpdf/include/tcpdf_filters.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ public static function decodeFilterLZWDecode($data) {
279279
// convert string to binary string
280280
$bitstring = '';
281281
for ($i = 0; $i < $data_length; ++$i) {
282-
$bitstring .= sprintf('%08b', ord($data{$i}));
282+
$bitstring .= sprintf('%08b', ord($data[$i]));
283283
}
284284
// get the number of bits
285285
$data_length = strlen($bitstring);
@@ -376,7 +376,7 @@ public static function decodeFilterRunLengthDecode($data) {
376376
$i = 0;
377377
while($i < $data_length) {
378378
// get current byte value
379-
$byte = ord($data{$i});
379+
$byte = ord($data[$i]);
380380
if ($byte == 128) {
381381
// a length value of 128 denote EOD
382382
break;

framework/vendors/tcpdf/include/tcpdf_images.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ public static function _parsepng($file) {
315315
if ($n > 0) {
316316
$trns = array();
317317
for ($i = 0; $i < $n; ++ $i) {
318-
$trns[] = ord($t{$i});
318+
$trns[] = ord($t[$i]);
319319
}
320320
}
321321
}

framework/vendors/tcpdf/tcpdf_parser.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -531,10 +531,10 @@ protected function getRawObject($offset=0) {
531531
if ($char == '(') {
532532
$open_bracket = 1;
533533
while ($open_bracket > 0) {
534-
if (!isset($this->pdfdata{$strpos})) {
534+
if (!isset($this->pdfdata[$strpos])) {
535535
break;
536536
}
537-
$ch = $this->pdfdata{$strpos};
537+
$ch = $this->pdfdata[$strpos];
538538
switch ($ch) {
539539
case '\\': { // REVERSE SOLIDUS (5Ch) (Backslash)
540540
// skip next character

0 commit comments

Comments
 (0)