types
This commit is contained in:
parent
f70bce113d
commit
84a4bb7f9a
@ -56,11 +56,11 @@ class VideoFileHandler extends DataHandlerExtension
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (array_key_exists("width", $stream) && !empty($stream["width"])
|
if (array_key_exists("width", $stream) && !empty($stream["width"])
|
||||||
&& is_numeric($stream["width"]) && intval($stream["width"]) > ($event->width) ?? 0) {
|
&& is_numeric($stream["width"]) && intval($stream["width"]) > ($event->image->width) ?? 0) {
|
||||||
$event->image->width = intval($stream["width"]);
|
$event->image->width = intval($stream["width"]);
|
||||||
}
|
}
|
||||||
if (array_key_exists("height", $stream) && !empty($stream["height"])
|
if (array_key_exists("height", $stream) && !empty($stream["height"])
|
||||||
&& is_numeric($stream["height"]) && intval($stream["height"]) > ($event->height) ?? 0) {
|
&& is_numeric($stream["height"]) && intval($stream["height"]) > ($event->image->height) ?? 0) {
|
||||||
$event->image->height = intval($stream["height"]);
|
$event->image->height = intval($stream["height"]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user