mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-14 18:48:21 -07:00
Short list syntax can be used
Signed-off-by: Yuriy Pikhtarev <iglix@me.com>
This commit is contained in:
parent
4bb72dfe59
commit
742575bb56
7 changed files with 10 additions and 10 deletions
|
@ -103,13 +103,13 @@ function create_thumbnail($source, $new_file, $mimetype)
|
|||
return false;
|
||||
}
|
||||
|
||||
list($width, $height, $type, ) = getimagesize($source);
|
||||
[$width, $height, $type,] = getimagesize($source);
|
||||
|
||||
if (!$width || !$height) {
|
||||
return false;
|
||||
}
|
||||
|
||||
list($new_width, $new_height) = get_img_size_format($width, $height);
|
||||
[$new_width, $new_height] = get_img_size_format($width, $height);
|
||||
|
||||
$tmp_path = $old_file = '';
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue