summaryrefslogtreecommitdiff
path: root/services
diff options
context:
space:
mode:
authormensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f>2008-11-30 19:32:15 +0000
committermensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f>2008-11-30 19:32:15 +0000
commitcf213449b1f51df0a0477bb102d5d73042b980a2 (patch)
treef5d6399105dbabd3257ff70d3305ada0e43391fe /services
parente0949aa0adfdfee4f78733277ff43d850ef3582e (diff)
downloadsemanticscuttle-cf213449b1f51df0a0477bb102d5d73042b980a2.tar.gz
semanticscuttle-cf213449b1f51df0a0477bb102d5d73042b980a2.tar.bz2
Minor fix: correct menu boxes and tag normalization
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@180 b3834d28-1941-0410-a4f8-b48e95affb8f
Diffstat (limited to 'services')
-rw-r--r--services/tagservice.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/services/tagservice.php b/services/tagservice.php
index 504d13f..ac30061 100644
--- a/services/tagservice.php
+++ b/services/tagservice.php
@@ -80,6 +80,15 @@ class TagService {
function normalize($tags) {
//clean tags from strange characters
$tags = str_replace(array('"', '\'', '/'), "_", $tags);
+
+ //normalize
+ if(!is_array($tags)) {
+ $tags = strtolower(trim($tags));
+ } else {
+ for($i=0; $i<count($tags); $i++) {
+ $tags[$i] = strtolower(trim($tags[$i]));
+ }
+ }
return $tags;
}