]> git.mxchange.org Git - mailer.git/blobdiff - inc/config-functions.php
Opps
[mailer.git] / inc / config-functions.php
index 87c8e28d8b0ed746ab299d87ff1ccbb570b229b0..41505b26dd2b17220a4ef6dd05aadb78f285361e 100644 (file)
@@ -206,13 +206,13 @@ function updateOldConfigFile () {
                                // Default comment
                                $comment = str_replace('_', '-', $new);
 
-                               // Do we have a special comment?
+                               // Is there a special comment?
                                if (isset($comments[$new])) {
                                        // Then use it
                                        $comment = $comments[$new];
                                } // END - if
 
-                               // Do we need to make $new lowercase?
+                               // Does $new needs to be lower-case?
                                $oldNew = $new;
                                if (in_array($new, $lowerCase)) {
                                        // Then do so... :)
@@ -231,7 +231,7 @@ function updateOldConfigFile () {
        } // END - foreach
 
        // By default the old array $MySQL was not found
-       $found = false;
+       $found = FALSE;
 
        // Analyze every entry again for the MySQL configuration
        foreach ($oldConfig as $line) {
@@ -241,8 +241,8 @@ function updateOldConfigFile () {
                // Is the $MySQL found?
                if (substr($line, 0, 6) == '$MySQL') {
                        // Okay, found
-                       $found = true;
-               } elseif ($found === true) {
+                       $found = TRUE;
+               } elseif ($found === TRUE) {
                        // Now check this row
                        if (substr($line, 0, 2) == ');') {
                                // MySQL array is closed so stop looking for it
@@ -283,7 +283,7 @@ function updateConfiguration ($entries, $values, $updateMode = '', $config = '0'
        // Default is empty SQL
        $SQL = '';
 
-       // Do we have multiple entries?
+       // Is there multiple entries?
        if (is_array($entries)) {
                // Walk through all
                foreach ($entries as $idx => $entry) {
@@ -295,7 +295,7 @@ function updateConfiguration ($entries, $values, $updateMode = '', $config = '0'
                                // Check if string or number but no array
                                if (is_array($values[$idx])) {
                                        // Arrays must be fixed...
-                                       reportBug(__FUNCTION__, __LINE__, 'values[' . $idx . '] should not be an array! Content=<pre>'.print_r($values[$idx], true).'</pre>');
+                                       reportBug(__FUNCTION__, __LINE__, 'values[' . $idx . '] should not be an array! Content=<pre>'.print_r($values[$idx], TRUE).'</pre>');
                                } elseif ($values[$idx] == 'UNIX_TIMESTAMP()') {
                                        // Function UNIX_TIMESTAMP() detected
                                        $SQL .= sprintf("`%s`=UNIX_TIMESTAMP(),", $entry);