dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
ce33214
)
* Avoid PHP warning messages when thumbnail not generated
author
Brion Vibber
<brion@users.mediawiki.org>
Thu, 23 Dec 2004 04:54:48 +0000
(
04:54
+0000)
committer
Brion Vibber
<brion@users.mediawiki.org>
Thu, 23 Dec 2004 04:54:48 +0000
(
04:54
+0000)
includes/Image.php
patch
|
blob
|
history
diff --git
a/includes/Image.php
b/includes/Image.php
index
6445453
..
51cbf29
100644
(file)
--- a/
includes/Image.php
+++ b/
includes/Image.php
@@
-506,10
+506,11
@@
class Image
# Check for zero-sized thumbnails. Those can be generated when
# no disk space is available or some other error occurs
#
- $thumbstat = stat( $thumbPath );
- if( $thumbstat['size'] == 0 )
- {
- unlink( $thumbPath );
+ if( file_exists( $thumbstat ) ) {
+ $thumbstat = stat( $thumbPath );
+ if( $thumbstat['size'] == 0 ) {
+ unlink( $thumbPath );
+ }
}
# Purge squid