aboutsummaryrefslogtreecommitdiffstats
path: root/include/oembed.php
diff options
context:
space:
mode:
authorTobias Hößl <tobias@hoessl.eu>2012-02-28 21:56:42 +0000
committerTobias Hößl <tobias@hoessl.eu>2012-02-28 21:56:42 +0000
commit5bb8ed4b8b5310acc8556ef2fba7b3958284b2a6 (patch)
tree6f15b4cff6c76ee7f93b4e50f28142b3eaee5007 /include/oembed.php
parent3d249f0eddb058f74b33d8205202b17ab7555aa6 (diff)
downloadvolse-hubzilla-5bb8ed4b8b5310acc8556ef2fba7b3958284b2a6.tar.gz
volse-hubzilla-5bb8ed4b8b5310acc8556ef2fba7b3958284b2a6.tar.bz2
volse-hubzilla-5bb8ed4b8b5310acc8556ef2fba7b3958284b2a6.zip
Mostly some checks in order to avoid Notices; 1 real bugfix in /mod/network.php
Diffstat (limited to 'include/oembed.php')
-rwxr-xr-xinclude/oembed.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/oembed.php b/include/oembed.php
index 5c3c595f5..52068efc7 100755
--- a/include/oembed.php
+++ b/include/oembed.php
@@ -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": {