mirror of
https://github.com/friendica/friendica
synced 2025-05-01 08:24:23 +02: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
|
@ -551,7 +551,7 @@ class ParseUrl
|
|||
if (!empty($image['url'])) {
|
||||
$image['url'] = self::completeUrl($image['url'], $page_url);
|
||||
$photodata = Images::getInfoFromURLCached($image['url']);
|
||||
if (!empty($photodata) && ($photodata[0] > 50) && ($photodata[1] > 50)) {
|
||||
if (($photodata) && ($photodata[0] > 50) && ($photodata[1] > 50)) {
|
||||
$image['src'] = $image['url'];
|
||||
$image['width'] = $photodata[0];
|
||||
$image['height'] = $photodata[1];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue