aboutsummaryrefslogtreecommitdiffstats
path: root/include/text.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2015-02-03 16:03:58 -0800
committerfriendica <info@friendica.com>2015-02-03 16:03:58 -0800
commitde79bb89fc0f6d0a55b1734e4deeb0dd5eed2fb9 (patch)
tree7b4a395abcc02c5a7df0fee56e0f2c0c8f51f2e9 /include/text.php
parent8a78d1d5dfcb048b83345c0d832c71303de04cd5 (diff)
parent3f50313862f5c2ca9d7118b234b2f154c7fb736a (diff)
downloadvolse-hubzilla-de79bb89fc0f6d0a55b1734e4deeb0dd5eed2fb9.tar.gz
volse-hubzilla-de79bb89fc0f6d0a55b1734e4deeb0dd5eed2fb9.tar.bz2
volse-hubzilla-de79bb89fc0f6d0a55b1734e4deeb0dd5eed2fb9.zip
Merge branch 'master' into pocorate
Diffstat (limited to 'include/text.php')
-rw-r--r--include/text.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/text.php b/include/text.php
index d19519779..ef2fc2371 100644
--- a/include/text.php
+++ b/include/text.php
@@ -1946,9 +1946,9 @@ function find_xchan_in_array($xchan,$arr) {
}
function get_rel_link($j,$rel) {
- if(count($j))
+ if(is_array($j) && ($j))
foreach($j as $l)
- if($l['rel'] === $rel)
+ if(array_key_exists('rel',$j) && $l['rel'] === $rel && array_key_exists('href',$l))
return $l['href'];
return '';