aboutsummaryrefslogtreecommitdiffstats
path: root/include/items.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-11-12 02:53:53 -0800
committerFriendika <info@friendika.com>2011-11-12 02:53:53 -0800
commitd23867f5a0564d680680e4bae3691bdecdcc183f (patch)
tree1a55db116bfa624f5ecf60f0824c630435492a3a /include/items.php
parent78bfb8b14e4644682d37e769b69acf8a960ff067 (diff)
downloadvolse-hubzilla-d23867f5a0564d680680e4bae3691bdecdcc183f.tar.gz
volse-hubzilla-d23867f5a0564d680680e4bae3691bdecdcc183f.tar.bz2
volse-hubzilla-d23867f5a0564d680680e4bae3691bdecdcc183f.zip
incorrect total use for get_feedtags
Diffstat (limited to 'include/items.php')
-rw-r--r--include/items.php4
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]);
}