diff options
Diffstat (limited to 'modules/taxonomy/taxonomy.module')
-rw-r--r-- | modules/taxonomy/taxonomy.module | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/modules/taxonomy/taxonomy.module b/modules/taxonomy/taxonomy.module index ea802def7..20b0939db 100644 --- a/modules/taxonomy/taxonomy.module +++ b/modules/taxonomy/taxonomy.module @@ -803,7 +803,13 @@ function _taxonomy_prepare_insert($data, $stage) { } else { foreach (array_values($data) as $value) { - $q[] = "'". str_replace('%', '%%', db_escape_string($value)) ."'"; + //Escape strings, but not integers + if (is_int($value)) { + $q[] = $value; + } + else { + $q[] = "'". str_replace('%', '%%', db_escape_string($value)) ."'"; + } } $result = implode(', ', $q); } |