Commit 113a91cc authored by Dries's avatar Dries
Browse files

- Patch #79612 by webchick: small performance improvement.

parent c27f564e
......@@ -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 {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment