diff --git a/phpthumb.gif.php b/phpthumb.gif.php index 94babc3..3081b9b 100644 --- a/phpthumb.gif.php +++ b/phpthumb.gif.php @@ -1093,9 +1093,9 @@ public function getGD_PixelPlotterVersion() for ($i = 0; $i < $NumColorsInPal; $i++) { $ThisImageColor[$i] = imagecolorallocate( $PlottingIMG, - ord($pal{($i * 3) + 0}), - ord($pal{($i * 3) + 1}), - ord($pal{($i * 3) + 2})); + ord($pal[($i * 3) + 0]), + ord($pal[($i * 3) + 1]), + ord($pal[($i * 3) + 2])); } // PREPARE BITMAP BITS