dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix error handling in File::createThumb.
[lhc/web/wiklou.git]
/
includes
/
filerepo
/
file
/
File.php
diff --git
a/includes/filerepo/file/File.php
b/includes/filerepo/file/File.php
index
1c9d8aa
..
dc35016
100644
(file)
--- a/
includes/filerepo/file/File.php
+++ b/
includes/filerepo/file/File.php
@@
-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 '';
}