Mostly some checks in order to avoid Notices; 1 real bugfix in /mod/network.php

This commit is contained in:
Tobias Hößl
2012-02-28 21:56:42 +00:00
parent 3d249f0edd
commit 5bb8ed4b8b
4 changed files with 19 additions and 11 deletions

View File

@@ -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": {