diff options
author | Gábor Hojtsy <gabor@hojtsy.hu> | 2007-09-06 12:42:50 +0000 |
---|---|---|
committer | Gábor Hojtsy <gabor@hojtsy.hu> | 2007-09-06 12:42:50 +0000 |
commit | c3685d60f70b6a37bb5a47f92fb35c00364a95df (patch) | |
tree | a7d2fed24be775025e102b9bf903dc64eaa68ac3 /modules/contact | |
parent | ab952ffb4d02a7597afbb154eda40e1b9f4ef3c7 (diff) | |
download | brdo-c3685d60f70b6a37bb5a47f92fb35c00364a95df.tar.gz brdo-c3685d60f70b6a37bb5a47f92fb35c00364a95df.tar.bz2 |
#172791 by dmitrig01: fix notices when contact page is called, but contact module is not configured yet
Diffstat (limited to 'modules/contact')
-rw-r--r-- | modules/contact/contact.pages.inc | 4 |
1 files changed, 3 insertions, 1 deletions
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; |