diff options
author | Dries Buytaert <dries@buytaert.net> | 2006-08-20 06:53:08 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2006-08-20 06:53:08 +0000 |
commit | 113a91cceb2a3437797b2d3046ed64ac585259be (patch) | |
tree | 0ec33d7711e874a94fbd2ac86030635b6f90588d | |
parent | c27f564e07057b38fe1fb906b68e0e1ccfd9996b (diff) | |
download | brdo-113a91cceb2a3437797b2d3046ed64ac585259be.tar.gz brdo-113a91cceb2a3437797b2d3046ed64ac585259be.tar.bz2 |
- Patch #79612 by webchick: small performance improvement.
-rw-r--r-- | modules/filter/filter.module | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/modules/filter/filter.module b/modules/filter/filter.module index cc4b81a49..c310ba51e 100644 --- a/modules/filter/filter.module +++ b/modules/filter/filter.module @@ -489,8 +489,7 @@ function filter_admin_format_form_submit($form_id, $form_values) { if (!$format) { $new = TRUE; db_query("INSERT INTO {filter_formats} (name) VALUES ('%s')", $name); - $result = db_fetch_object(db_query("SELECT MAX(format) AS format FROM {filter_formats}")); - $format = $result->format; + $format = db_result(db_query("SELECT MAX(format) AS format FROM {filter_formats}")); drupal_set_message(t('Added input format %format.', array('%format' => $name))); } else { |