]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/member/what-support.php
Some functions rewritten to hungarian notation, handling of array rewritten
[mailer.git] / inc / modules / member / what-support.php
index bf9dda5e2facf53e3d0e9310e5a0625fa193554f..904d67393f7e7c2d6fd98cd7de4c71acb3031e5a 100644 (file)
@@ -37,8 +37,8 @@ if (!defined('__SECURITY')) {
        require($INC);
 }  elseif (!IS_MEMBER()){
        LOAD_URL("modules.php?module=index");
-} elseif (!EXT_IS_ACTIVE("support")) {
-       ADD_FATAL(EXTENSION_PROBLEM_EXT_INACTIVE, "support");
+} elseif ((!EXT_IS_ACTIVE("support")) && (!IS_ADMIN())) {
+       addFatalMessage(EXTENSION_PROBLEM_EXT_INACTIVE, "support");
        return;
 }
 
@@ -71,7 +71,7 @@ if ((!isset($_POST['ok'])) || (empty($_POST['qsummary']))) {
        SEND_EMAIL($GLOBALS['userid'], $subj_m, $msg_m);
 
        // Drop a message in the admin's area
-       $result = SQL_QUERY_ESC("INSERT INTO "._MYSQL_PREFIX."_task_system (userid, assigned_admin, status, task_type, subject, text, task_created) VALUES ('%s','0','NEW','SUPPORT_MEMBER','%s','%s', UNIX_TIMESTAMP())",
+       SQL_QUERY_ESC("INSERT INTO "._MYSQL_PREFIX."_task_system (userid, assigned_admin, status, task_type, subject, text, task_created) VALUES ('%s','0','NEW','SUPPORT_MEMBER','%s','%s', UNIX_TIMESTAMP())",
                array($GLOBALS['userid'], $subj_a, $_POST['qsummary'].":".array('text' => $_POST['qdetails'])), __FILE__, __LINE__);
 
        // Form sent