From c3685d60f70b6a37bb5a47f92fb35c00364a95df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A1bor=20Hojtsy?= Date: Thu, 6 Sep 2007 12:42:50 +0000 Subject: #172791 by dmitrig01: fix notices when contact page is called, but contact module is not configured yet --- modules/contact/contact.pages.inc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'modules') diff --git a/modules/contact/contact.pages.inc b/modules/contact/contact.pages.inc index 041ad4d5f..ce7ad6796 100644 --- a/modules/contact/contact.pages.inc +++ b/modules/contact/contact.pages.inc @@ -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; -- cgit v1.2.3