From 72269aa1d6790b5e9d0643fa348b9c1df6a8cfc7 Mon Sep 17 00:00:00 2001 From: Ricardo Soares de Lima Date: Sat, 8 Dec 2012 17:23:10 -0200 Subject: Using a foreach loop avoids Notice warnings when the array doesn't have sequential indexes, ex: 0, 1, 3... --- src/SemanticScuttle/Service/Tag.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/SemanticScuttle/Service/Tag.php') diff --git a/src/SemanticScuttle/Service/Tag.php b/src/SemanticScuttle/Service/Tag.php index 39147b8..bd6bf70 100644 --- a/src/SemanticScuttle/Service/Tag.php +++ b/src/SemanticScuttle/Service/Tag.php @@ -144,7 +144,7 @@ class SemanticScuttle_Service_Tag extends SemanticScuttle_DbService $tags = utf8_strtolower(trim($tags)); } else { $tags = array_filter($tags);//remove empty values - for($i=0; $i $tag) { $tags[$i] = utf8_strtolower(trim($tags[$i])); } } -- cgit v1.2.3-54-g00ecf