#172791 by dmitrig01: fix notices when contact page is called, but contact module is not configured yet
parent
ab952ffb4d
commit
c3685d60f7
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue