diff options
author | Dries Buytaert <dries@buytaert.net> | 2007-08-07 11:33:36 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2007-08-07 11:33:36 +0000 |
commit | 491b47f0a9df2c7ac39774b83ce60fc601c4af15 (patch) | |
tree | 4c43c219628eb9f668eb6e97c306c56ced3cfa7d /modules | |
parent | a21275a58f5eecb8fac93010042a726e5d76e2c5 (diff) | |
download | brdo-491b47f0a9df2c7ac39774b83ce60fc601c4af15.tar.gz brdo-491b47f0a9df2c7ac39774b83ce60fc601c4af15.tar.bz2 |
- Patch #158537 by Benjamin Melancon and Wim Leers: unnecessary 'ORDER BY' in taxonomy_vocabulary_load.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/taxonomy/taxonomy.module | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/taxonomy/taxonomy.module b/modules/taxonomy/taxonomy.module index 923297b8e..00ee035c7 100644 --- a/modules/taxonomy/taxonomy.module +++ b/modules/taxonomy/taxonomy.module @@ -844,7 +844,7 @@ function taxonomy_vocabulary_load($vid) { static $vocabularies = array(); if (!array_key_exists($vid, $vocabularies)) { - $result = db_query('SELECT v.*, n.type FROM {vocabulary} v LEFT JOIN {vocabulary_node_types} n ON v.vid = n.vid WHERE v.vid = %d ORDER BY v.weight, v.name', $vid); + $result = db_query('SELECT v.*, n.type FROM {vocabulary} v LEFT JOIN {vocabulary_node_types} n ON v.vid = n.vid WHERE v.vid = %d', $vid); $node_types = array(); while ($voc = db_fetch_object($result)) { if (!empty($voc->type)) { |