diff --git a/inc/image.php b/inc/image.php index 7f26a64a..a944fad9 100644 --- a/inc/image.php +++ b/inc/image.php @@ -311,7 +311,7 @@ class ImageConvert extends ImageBase { $this->destroy(); } - $this->temp = tempnam($config['tmp'], 'convert') . ($config['thumb_ext'] == '' ? '.' . $config['thumb_ext'] : ''); + $this->temp = tempnam($config['tmp'], 'convert') . ($config['thumb_ext'] == '' ? '' : '.' . $config['thumb_ext']); $config['thumb_keep_animation_frames'] = (int)$config['thumb_keep_animation_frames'];