mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-03-28 17:42:57 +01:00
... was string when original url was used as derivative url (when the original is smaller than the derivative dimensions)
This commit is contained in:
@@ -168,7 +168,7 @@ function ws_std_get_urls($image_row)
|
||||
{
|
||||
$size = $derivative->get_size();
|
||||
$size != null or $size=array(null,null);
|
||||
$derivatives_arr[$type] = array('url' => $derivative->get_url(), 'width'=>$size[0], 'height'=>$size[1] );
|
||||
$derivatives_arr[$type] = array('url' => $derivative->get_url(), 'width'=>(int)$size[0], 'height'=>(int)$size[1] );
|
||||
}
|
||||
$ret['derivatives'] = $derivatives_arr;;
|
||||
return $ret;
|
||||
|
||||
Reference in New Issue
Block a user