From 95a425a1f39e784d7dc8a8b7302cf24bc8c0f0f4 Mon Sep 17 00:00:00 2001 From: Friendika Date: Thu, 4 Nov 2010 00:37:29 -0700 Subject: minor stuff --- include/items.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/items.php') 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" ; } -- cgit v1.2.3