mirror of
https://github.com/friendica/friendica
synced 2025-04-26 13:50:11 +00:00
Changed:
- empty() is maybe superflous here, still I would prefer a code style that is written explicitly and not rely on "magic casting"
This commit is contained in:
parent
15d8341d9a
commit
7eefb9aed8
4 changed files with 7 additions and 7 deletions
|
@ -192,7 +192,7 @@ class Media
|
|||
|
||||
if (($media['type'] == self::IMAGE) || ($filetype == 'image')) {
|
||||
$imagedata = Images::getInfoFromURLCached($media['url']);
|
||||
if (!empty($imagedata)) {
|
||||
if ($imagedata) {
|
||||
$media['mimetype'] = $imagedata['mime'];
|
||||
$media['size'] = $imagedata['size'];
|
||||
$media['width'] = $imagedata[0];
|
||||
|
@ -202,7 +202,7 @@ class Media
|
|||
}
|
||||
if (!empty($media['preview'])) {
|
||||
$imagedata = Images::getInfoFromURLCached($media['preview']);
|
||||
if (!empty($imagedata)) {
|
||||
if ($imagedata) {
|
||||
$media['preview-width'] = $imagedata[0];
|
||||
$media['preview-height'] = $imagedata[1];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue