Fix error handling in File::createThumb.
[lhc/web/wiklou.git] / includes / filerepo / file / File.php
index 1c9d8aa..dc35016 100644 (file)
@@ -904,7 +904,7 @@ abstract class File {
                        $params['height'] = $height;
                }
                $thumb = $this->transform( $params );
-               if ( is_null( $thumb ) || $thumb->isError() ) {
+               if ( !$thumb || $thumb->isError() ) {
                        return '';
                }