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