summaryrefslogtreecommitdiff
path: root/src/SemanticScuttle/Service/Tag.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/SemanticScuttle/Service/Tag.php')
-rw-r--r--src/SemanticScuttle/Service/Tag.php2
1 files changed, 1 insertions, 1 deletions
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<count($tags); $i++) {
+ foreach($tags as $i => $tag) {
$tags[$i] = utf8_strtolower(trim($tags[$i]));
}
}