- Patch by webchick: small performance improvement.

5.x
Dries Buytaert 2006-08-20 06:53:08 +00:00
parent c27f564e07
commit 113a91cceb
1 changed files with 1 additions and 2 deletions
modules/filter

View File

@ -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 {