fix api
authorAlan <alan@roojs.com>
Thu, 23 Mar 2023 09:33:20 +0000 (17:33 +0800)
committerAlan <alan@roojs.com>
Thu, 23 Mar 2023 09:33:20 +0000 (17:33 +0800)
Image/Transform.php

index 4c1a92b..48a3f63 100644 (file)
@@ -1300,7 +1300,7 @@ class Image_Transform
             if (is_array($color)) {
                 return $color;
             }
-            if ($color{0} == '#') {
+            if ($color[0] == '#') {
                 return $this->colorhex2colorarray($color);
             }
             static $colornames = array();