summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2006-08-20 06:53:08 +0000
committerDries Buytaert <dries@buytaert.net>2006-08-20 06:53:08 +0000
commit113a91cceb2a3437797b2d3046ed64ac585259be (patch)
tree0ec33d7711e874a94fbd2ac86030635b6f90588d /modules
parentc27f564e07057b38fe1fb906b68e0e1ccfd9996b (diff)
downloadbrdo-113a91cceb2a3437797b2d3046ed64ac585259be.tar.gz
brdo-113a91cceb2a3437797b2d3046ed64ac585259be.tar.bz2
- Patch #79612 by webchick: small performance improvement.
Diffstat (limited to 'modules')
-rw-r--r--modules/filter/filter.module3
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 {