From: Friendika Date: Sat, 12 Nov 2011 10:53:53 +0000 (-0800) Subject: incorrect total use for get_feedtags X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=d23867f5a0564d680680e4bae3691bdecdcc183f;p=friendica.git incorrect total use for get_feedtags --- diff --git a/include/items.php b/include/items.php index 35db71946c..b8e258d3f0 100644 --- a/include/items.php +++ b/include/items.php @@ -2666,7 +2666,7 @@ function item_getfeedtags($item) { $matches = false; $cnt = preg_match_all('|\#\[url\=(.*?)\](.*?)\[\/url\]|',$item['tag'],$matches); if($cnt) { - for($x = 0; $x < count($matches); $x ++) { + for($x = 0; $x < $cnt; $x ++) { if($matches[1][$x]) $ret[] = array('#',$matches[1][$x], $matches[2][$x]); } @@ -2674,7 +2674,7 @@ function item_getfeedtags($item) { $matches = false; $cnt = preg_match_all('|\@\[url\=(.*?)\](.*?)\[\/url\]|',$item['tag'],$matches); if($cnt) { - for($x = 0; $x < count($matches); $x ++) { + for($x = 0; $x < $cnt; $x ++) { if($matches[1][$x]) $ret[] = array('@',$matches[1][$x], $matches[2][$x]); }