JamesHeinrich / phpThumb

phpThumb() - The PHP thumbnail generator
Other
315 stars 141 forks source link

Maybe the very last curly brace error in source #219

Closed gnanet closed 9 months ago

gnanet commented 9 months ago

https://github.com/JamesHeinrich/phpThumb/blob/7ee966b38ddd7eb4d8091389aa514604710711c8/demo/phpThumb.demo.gallery.php#L64

- if (is_dir($currentdir.'/'.$file) && ($file{0} != '.')) {
+ if (is_dir($currentdir.'/'.$file) && ($file[0] != '.')) {

stumbled upon while moving some of my galleries to a new server,and done a php8.1 lint on all my php sources

JamesHeinrich commented 9 months ago

Fixed in https://github.com/JamesHeinrich/phpThumb/commit/98d876606c09d42bf48a3c8022871fabb7cea46b thanks