]> git.mxchange.org Git - friendica.git/commitdiff
incorrect total use for get_feedtags
authorFriendika <info@friendika.com>
Sat, 12 Nov 2011 10:53:53 +0000 (02:53 -0800)
committerFriendika <info@friendika.com>
Sat, 12 Nov 2011 10:53:53 +0000 (02:53 -0800)
include/items.php

index 35db71946cbe3236c179a887344cee974e314e77..b8e258d3f0e376c1460fdd9dce64ec7a69832816 100644 (file)
@@ -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]);
                }