diff options
author | Friendika <info@friendika.com> | 2011-11-12 02:53:53 -0800 |
---|---|---|
committer | Friendika <info@friendika.com> | 2011-11-12 02:53:53 -0800 |
commit | d23867f5a0564d680680e4bae3691bdecdcc183f (patch) | |
tree | 1a55db116bfa624f5ecf60f0824c630435492a3a | |
parent | 78bfb8b14e4644682d37e769b69acf8a960ff067 (diff) | |
download | volse-hubzilla-d23867f5a0564d680680e4bae3691bdecdcc183f.tar.gz volse-hubzilla-d23867f5a0564d680680e4bae3691bdecdcc183f.tar.bz2 volse-hubzilla-d23867f5a0564d680680e4bae3691bdecdcc183f.zip |
incorrect total use for get_feedtags
-rw-r--r-- | include/items.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/items.php b/include/items.php index 35db71946..b8e258d3f 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]); } |