diff options
author | Dries Buytaert <dries@buytaert.net> | 2005-11-12 09:14:30 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2005-11-12 09:14:30 +0000 |
commit | 7dd24bec5c65462a095fd5a011e75113aab3714c (patch) | |
tree | e0939056cc189fc85873c2ab4c06d5392555742c /modules/contact | |
parent | c2fcb6d5198f0bbec54787744eac0ed24ef9db96 (diff) | |
download | brdo-7dd24bec5c65462a095fd5a011e75113aab3714c.tar.gz brdo-7dd24bec5c65462a095fd5a011e75113aab3714c.tar.bz2 |
- SQL query maintenance: '%d' -> %d.
Diffstat (limited to 'modules/contact')
-rw-r--r-- | modules/contact/contact.module | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/contact/contact.module b/modules/contact/contact.module index 597cd0f3c..2f745a7c1 100644 --- a/modules/contact/contact.module +++ b/modules/contact/contact.module @@ -187,13 +187,13 @@ function contact_admin_edit($cid = NULL) { } if (!form_get_errors()) { - db_query("DELETE FROM {contact} WHERE cid = '%d'", $cid); + db_query("DELETE FROM {contact} WHERE cid = %d", $cid); db_query("INSERT INTO {contact} (category, recipients, reply) VALUES ('%s', '%s', '%s')", $edit['category'], $edit['recipients'], $edit['reply']); drupal_goto('admin/contact'); } } else { - $category = db_fetch_object(db_query("SELECT * FROM {contact} WHERE cid = '%d'", $cid)); + $category = db_fetch_object(db_query("SELECT * FROM {contact} WHERE cid = %d", $cid)); $edit['cid'] = $category->cid; $edit['category'] = $category->category; $edit['recipients'] = $category->recipients; @@ -209,7 +209,7 @@ function contact_admin_edit($cid = NULL) { } function contact_admin_delete($cid) { - $info = db_fetch_object(db_query("SELECT cid, category FROM {contact} WHERE cid = '%d'",$cid)); + $info = db_fetch_object(db_query("SELECT cid, category FROM {contact} WHERE cid = %d",$cid)); if ($_POST['op'] != t('Delete')) { return confirm_form('contact_admin_delete', array(), t('Are you sure you want to delete %category?', array('%category' => theme('placeholder', $info->category))), @@ -219,7 +219,7 @@ function contact_admin_delete($cid) { t('Cancel')); } else { - db_query("DELETE FROM {contact} WHERE cid = '%d'", $cid); + db_query("DELETE FROM {contact} WHERE cid = %d", $cid); drupal_goto('admin/contact'); } } |