aboutsummaryrefslogtreecommitdiffstats
path: root/include/items.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2010-11-04 00:37:29 -0700
committerFriendika <info@friendika.com>2010-11-04 00:37:29 -0700
commit95a425a1f39e784d7dc8a8b7302cf24bc8c0f0f4 (patch)
tree68998773b83c0f437f220ecd115266fae4586507 /include/items.php
parent4f8445760c7a9cc89eed4f7cbb3eccb605ecabbe (diff)
downloadvolse-hubzilla-95a425a1f39e784d7dc8a8b7302cf24bc8c0f0f4.tar.gz
volse-hubzilla-95a425a1f39e784d7dc8a8b7302cf24bc8c0f0f4.tar.bz2
volse-hubzilla-95a425a1f39e784d7dc8a8b7302cf24bc8c0f0f4.zip
minor stuff
Diffstat (limited to 'include/items.php')
-rw-r--r--include/items.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/items.php b/include/items.php
index 7daf4042c..783ca63e0 100644
--- a/include/items.php
+++ b/include/items.php
@@ -500,9 +500,9 @@ function encode_rel_links($links) {
$o .= 'type="' . $link['attribs']['']['type'] . '" ';
if($link['attribs']['']['href'])
$o .= 'type="' . $link['attribs']['']['href'] . '" ';
- if($link['attribs'][NAMESPACE_MEDIA]['width'])
+ if( (x($link['attribs'],NAMESPACE_MEDIA)) && $link['attribs'][NAMESPACE_MEDIA]['width'])
$o .= 'media:width="' . $link['attribs'][NAMESPACE_MEDIA]['width'] . '" ';
- if($link['attribs'][NAMESPACE_MEDIA]['height'])
+ if( (x($link['attribs'],NAMESPACE_MEDIA)) && $link['attribs'][NAMESPACE_MEDIA]['height'])
$o .= 'media:height="' . $link['attribs'][NAMESPACE_MEDIA]['height'] . '" ';
$o .= ' />' . "\n" ;
}