Coerce width, height of media link to integer
This commit is contained in:
parent
221c724b4c
commit
9bb5d8c695
@ -201,9 +201,9 @@ class ActivityStreamsMediaLink extends ActivityStreamsLink
|
||||
{
|
||||
parent::__construct($url, $rel, $mediaType);
|
||||
$this->linkDict = array(
|
||||
'width' => $width,
|
||||
'height' => $height,
|
||||
'duration' => $duration
|
||||
'width' => intval($width),
|
||||
'height' => intval($height),
|
||||
'duration' => intval($duration)
|
||||
);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user