Gregwar/ImageBundle — Issue #7: ImageHandler bug, asset not working -- here is a diff
Author: electrolinux
Created: 2011-12-23 14:11:33+00:00
State: open

Hello !

Thanks for the nice bundle, BTW.

Just found this little bug preventing the usage of the asset service. Here is a diff for ImageHandler.php

Keep the good work!

```diff
index c4aa8e5..a36fc8a 100755
--- a/ImageHandler.php
+++ b/ImageHandler.php
@@ -28,7 +28,7 @@ class ImageHandler extends Image
{
$callback = $this->fileCallback;

- if (null !== $callback)
+ if (null === $callback)
return $filename;

return $callback($filename);
```