Mostly some checks in order to avoid Notices; 1 real bugfix in /mod/network.php
This commit is contained in:
parent
3d249f0edd
commit
5bb8ed4b8b
4 changed files with 19 additions and 11 deletions
|
|
@ -62,7 +62,7 @@ function oembed_fetch_url($embedurl){
|
|||
|
||||
function oembed_format_object($j){
|
||||
$embedurl = $j->embedurl;
|
||||
$jhtml = oembed_iframe($j->embedurl,$j->width,$j->height );
|
||||
$jhtml = oembed_iframe($j->embedurl,(isset($j->width) ? $j->width : null), (isset($j->height) ? $j->height : null) );
|
||||
$ret="<span class='oembed ".$j->type."'>";
|
||||
switch ($j->type) {
|
||||
case "video": {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue