]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-extensions.php
login bonus will no longer be payed when turned off, "Y/N" rewritten to 'Y/N'
[mailer.git] / inc / modules / admin / what-extensions.php
index d574a547ca66d0b70c6c9de92d95fc8cb550e3ec..0fd97cf399d97775e47accaf4aef1fbb0ff4a1e7 100644 (file)
@@ -55,12 +55,12 @@ if (!empty($_GET['reg_ext'])) {
        // De-/activate extensions
        foreach ($_POST['sel'] as $id=>$active) {
                // Shall we keep the extension always active?
-               if ((isset($KEEP_ACTIVE[GET_EXT_NAME($id)])) && ($KEEP_ACTIVE[GET_EXT_NAME($id)] == "Y") && ($active == "N")) {
+               if ((isset($KEEP_ACTIVE[GET_EXT_NAME($id)])) && ($KEEP_ACTIVE[GET_EXT_NAME($id)] == 'Y') && ($active == 'N')) {
                        // Keep this extension active!
                } else {
                        // De/activate extension
-                       $ACT = "N"; $EXT_LOAD_MODE = "deactivate";
-                       if ($active == "N") { $ACT = "Y"; $EXT_LOAD_MODE = "activate"; }
+                       $ACT = 'N'; $EXT_LOAD_MODE = "deactivate";
+                       if ($active == 'N') { $ACT = 'Y'; $EXT_LOAD_MODE = "activate"; }
                        $result = SQL_QUERY_ESC("UPDATE "._MYSQL_PREFIX."_extensions SET ext_active='".$ACT."' WHERE id=%d AND ext_active='%s' LIMIT 1",
                         array(bigintval($id), $active), __FILE__, __LINE__);
 
@@ -93,8 +93,8 @@ if (!empty($_GET['reg_ext'])) {
 
                                // Run SQLs on activation / deactivation
                                switch ($active) {
-                                       case "Y": $EXT_LOAD_MODE = "activate";   break;
-                                       case "N": $EXT_LOAD_MODE = "deactivate"; break;
+                                       case 'Y': $EXT_LOAD_MODE = "activate";   break;
+                                       case 'N': $EXT_LOAD_MODE = "deactivate"; break;
                                }
 
                                // Run embeded SQL commands
@@ -111,7 +111,7 @@ if (!empty($_GET['reg_ext'])) {
                $SW = "2"; $OUT = "";
                foreach ($_POST['sel'] as $id=>$sel) {
                        // Edit this extension?
-                       if (($sel == "Y") || ($sel == "N")) {
+                       if (($sel == 'Y') || ($sel == 'N')) {
                                // Load required data
                                if (GET_EXT_VERSION("sql_patches") >= "0.0.6") {
                                        $result = SQL_QUERY_ESC("SELECT ext_name, ext_has_css, ext_active FROM "._MYSQL_PREFIX."_extensions WHERE id=%d LIMIT 1",