summaryrefslogtreecommitdiff
path: root/modules/taxonomy
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2005-12-14 20:10:45 +0000
committerDries Buytaert <dries@buytaert.net>2005-12-14 20:10:45 +0000
commit764f1177efe7bafe5ab47b21968d4b0921c3896c (patch)
treeb0d25865abedeed7d251bef5c43857e79bc6f210 /modules/taxonomy
parente53f58fbe0e6c033fce65bd0d7a76d25911ff158 (diff)
downloadbrdo-764f1177efe7bafe5ab47b21968d4b0921c3896c.tar.gz
brdo-764f1177efe7bafe5ab47b21968d4b0921c3896c.tar.bz2
- Patch #40631 by Chris Johnson: is_array() slower than isset() or empty().
Diffstat (limited to 'modules/taxonomy')
-rw-r--r--modules/taxonomy/taxonomy.module2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/taxonomy/taxonomy.module b/modules/taxonomy/taxonomy.module
index 5b4bd3627..eda75a7b1 100644
--- a/modules/taxonomy/taxonomy.module
+++ b/modules/taxonomy/taxonomy.module
@@ -596,7 +596,7 @@ function taxonomy_node_save($nid, $terms) {
// Free tagging vocabularies do not send their tids in the form,
// so we'll detect them here and process them independently.
- if ($terms['tags']) {
+ if (isset($terms['tags'])) {
$typed_input = $terms['tags'];
unset($terms['tags']);