dotblue / nette-webimages

On-the-fly generated web images for your Nette app
Other
26 stars 17 forks source link

Fixed undefined variable #7

Closed lookyman closed 10 years ago

lookyman commented 10 years ago

...when no provider exists.

vojtech-dobes commented 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.

lookyman commented 10 years ago

Well maybe it would be best to just initialize the $image variable before the provider loop?

lookyman commented 10 years ago

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.