Index: trunk/extensions/AbuseFilter/AbuseFilter.parser.php |
— | — | @@ -1301,14 +1301,6 @@ |
1302 | 1302 | |
1303 | 1303 | if( $args[0]->type == AFPData::DList && count( $args ) == 1 ) { |
1304 | 1304 | return new AFPData( AFPData::DInt, count( $args[0]->data ) ); |
1305 | | - } elseif( count( $args ) > 1 && $args[1]->type == AFPData::DList ) { |
1306 | | - $needle = $args[0]; |
1307 | | - $haystack = $args[1]->toList(); |
1308 | | - $count = 0; |
1309 | | - foreach( $haystack as $item ) |
1310 | | - if( AFPData::equals( $needle, $item )) |
1311 | | - $count++; |
1312 | | - return new AFPData( AFPData::DInt, $count ); |
1313 | 1305 | } |
1314 | 1306 | |
1315 | 1307 | $offset = -1; |