]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/order.php
More deprecated checking boolean expressions fixed
[mailer.git] / inc / modules / order.php
index 110ae78277d5a58fc88274bef3e4fea59fb67c26..9d24c7d4eda36a12223b95d4944c17c41673a226 100644 (file)
@@ -36,7 +36,7 @@ $URL = "";
 if (!defined('__SECURITY')) {
        $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php";
        require($INC);
-} elseif ((!EXT_IS_ACTIVE("order")) && (!IS_ADMIN())) {
+} elseif (!EXT_IS_ACTIVE("order"))
        ADD_FATAL(EXTENSION_PROBLEM_EXT_INACTIVE, "order");
        return;
 } elseif (!IS_MEMBER()) {
@@ -95,7 +95,8 @@ if (empty($URL)) {
                        'subject'  => $DATA[0],
                        'text'     => $DATA[1],
                        'payment'  => GET_PAYMENT($DATA[3]),
-                       'category' => GET_CATEGORY($DATA[6])
+                       'category' => GET_CATEGORY($DATA[6]),
+                       'url'      => $DATA[5]
                );
 
                // Send an email to the user