Code cleanup:
[mailer.git] / inc / mysql-manager.php
index 2d5d26fa9af300d84339cf283937fcf42e9b7e2e..9fc243f21403d3acd2326267c07def46c4101a92 100644 (file)
@@ -85,7 +85,7 @@ function getModuleTitle ($mod) {
 
 // "Getter" for module description
 function getModuleDescription ($mode, $wht, $column = 'what') {
-       // Fix empty "what"
+       // Fix empty 'what'
        if (empty($wht)) {
                $wht = "welcome";
                if (getConfig('index_home') != '') $wht = getConfig('index_home');
@@ -268,7 +268,7 @@ function ADD_DESCR ($ACC_LVL, $FQFN, $return = false, $output = true) {
        // First we have to do some analysis...
        if (substr($file, 0, 7) == "action-") {
                // This is an action file!
-               $type = "action";
+               $type = 'action';
                $search = substr($file, 7);
                switch ($ACC_LVL) {
                        case 'admin':
@@ -284,7 +284,7 @@ function ADD_DESCR ($ACC_LVL, $FQFN, $return = false, $output = true) {
                $AND = " AND (`what`='' OR `what` IS NULL)";
        } elseif (substr($file, 0, 5) == "what-") {
                // This is an admin what file!
-               $type = "what";
+               $type = 'what';
                $search = substr($file, 5);
                $AND = '';
                switch ($ACC_LVL) {
@@ -304,7 +304,7 @@ function ADD_DESCR ($ACC_LVL, $FQFN, $return = false, $output = true) {
                $AND .= " AND `action`='".getModeAction($ACC_LVL, $dummy)."'";
        } elseif (($ACC_LVL == 'sponsor') || ($ACC_LVL == "engine")) {
                // Sponsor / engine menu
-               $type     = "what";
+               $type     = 'what';
                $search   = $file;
                $modCheck = $GLOBALS['module'];
                $AND      = '';
@@ -352,7 +352,7 @@ function ADD_DESCR ($ACC_LVL, $FQFN, $return = false, $output = true) {
 
                        // Can we close the you-are-here navigation?
                        //* DEBUG: */ echo __LINE__."*".$type.'/'.$GLOBALS['what']."*<br />\n";
-                       if (($type == "what") || (($type == "action") && ((!isset($GLOBALS['what'])) || ($GLOBALS['what'] == "overview")))) {
+                       if (($type == 'what') || (($type == 'action') && ((!isset($GLOBALS['what'])) || ($GLOBALS['what'] == "overview")))) {
                                //* DEBUG: */ echo __LINE__.'+'.$type."+<br />\n";
                                // Add closing div and br-tag
                                $OUT .= "</div><br />\n";