Closed lookyman closed 10 years ago
Hm, I see, that fixes problem when there is no provider registered right? That can be solved differently. On the other hand, I would like to make it possible to return FALSE
as well, which won't work with this change now.
Well maybe it would be best to just initialize the $image
variable before the provider loop?
Btw I know there's https://github.com/dotblue/nette-webimages/blob/master/src/Extension.php#L70, but I ran into this problem while creating the Generator manually.
...when no provider exists.