Coerce width, height of media link to integer

This commit is contained in:
Evan Prodromou 2013-06-07 00:30:04 -04:00
parent 77f23354ad
commit 9a3c3c5cf8

View File

@ -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)
);
}