diff --git a/include/items.php b/include/items.php
index 501f2f944..9eaee4573 100644
--- a/include/items.php
+++ b/include/items.php
@@ -1584,14 +1584,14 @@ function item_getfeedtags($item) {
}
function item_getfeedattach($item) {
- $ret = array();
+ $ret = '';
$arr = explode(',',$item['attach']);
if(count($arr)) {
foreach($arr as $r) {
$matches = false;
- $cnt = preg_match('|\(.+?)|',$item['attach'],$matches);
+ $cnt = preg_match('|\(.+?)|',$r,$matches);
if($cnt) {
- $ret .= '