From 764f1177efe7bafe5ab47b21968d4b0921c3896c Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Wed, 14 Dec 2005 20:10:45 +0000 Subject: - Patch #40631 by Chris Johnson: is_array() slower than isset() or empty(). --- modules/taxonomy.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/taxonomy.module') diff --git a/modules/taxonomy.module b/modules/taxonomy.module index 5b4bd3627..eda75a7b1 100644 --- a/modules/taxonomy.module +++ b/modules/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']); -- cgit v1.2.3