diff options
Diffstat (limited to 'modules/contact/contact.module')
-rw-r--r-- | modules/contact/contact.module | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/contact/contact.module b/modules/contact/contact.module index 9eee7558a..22338dbb8 100644 --- a/modules/contact/contact.module +++ b/modules/contact/contact.module @@ -131,7 +131,8 @@ function _contact_user_tab_access($account) { * Load the data for a single contact category. */ function contact_load($cid) { - $contact = db_fetch_array(db_query("SELECT * FROM {contact} WHERE cid = %d", $cid)); + $contact = db_query("SELECT cid, category, recipients, reply, weight, selected FROM {contact} WHERE cid = :cid", array(':cid' => $cid)) + ->fetchAssoc(); return empty($contact) ? FALSE : $contact; } |