Commit c3685d60 authored by Gábor Hojtsy's avatar Gábor Hojtsy
Browse files

#172791 by dmitrig01: fix notices when contact page is called, but contact...

#172791 by dmitrig01: fix notices when contact page is called, but contact module is not configured yet
parent ab952ffb
......@@ -25,7 +25,9 @@ function contact_site_page() {
function contact_mail_page() {
global $user;
$form = $categories = array();
$result = db_query('SELECT cid, category, selected FROM {contact} ORDER BY weight, category');
while ($category = db_fetch_object($result)) {
$categories[$category->cid] = $category->category;
......
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