X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fconfig-functions.php;h=6a89335d85cc17a34b470dda5bf1f15b7bf953f0;hb=82cbb1b75e0091b6333fefd045903329b234b9fb;hp=df5a884e95c19a3849e62bec6d7693484ae4e8a1;hpb=c3b4eaf29946349ff058691db2dcb615a5379bb2;p=mailer.git diff --git a/inc/config-functions.php b/inc/config-functions.php index df5a884e95..6a89335d85 100644 --- a/inc/config-functions.php +++ b/inc/config-functions.php @@ -90,7 +90,7 @@ function setConfigEntry ($configEntry, $value) { // Checks wether the given config entry is set function isConfigEntrySet ($configEntry) { - //* DEBUG: */ debugOutput(__FUNCTION__.':'.$configEntry.'='.intval(isset($GLOBALS['config'][$configEntry]))); + //* DEBUG: */ debugOutput(__FUNCTION__ . ':' . $configEntry . '=' . intval(isset($GLOBALS['config'][$configEntry]))); return (isset($GLOBALS['config'][$configEntry])); } @@ -193,7 +193,7 @@ function updateOldConfigFile () { // Is the line found? if ((substr($line, 0, strlen($old)) == $old) && (!isset($done[$old]))) { - // Entry found! + // Entry found //* DEBUG: */ debugOutput(secureString($line) . ' - FOUND!'); // Eval the line... @@ -218,7 +218,7 @@ function updateOldConfigFile () { $new = strtolower($new); } // END - if - /// ... and write it to the new config + // ... and write it to the new config //* DEBUG: */ debugOutput('function=' . $function . ',new=' . $new . ',comment=' . $comment); changeDataInInclude(getCachePath() . 'config-local.php', $comment, $function . "('" . $oldNew . "', \"", '");', constant($new), 0); //* DEBUG: */ debugOutput('CHANGED!'); @@ -239,7 +239,7 @@ function updateOldConfigFile () { // Is the $MySQL found? if (substr($line, 0, 6) == '$MySQL') { - // Okay found! + // Okay, found $found = true; } elseif ($found === true) { // Now check this row @@ -351,7 +351,9 @@ function updateConfiguration ($entries, $values, $updateMode='', $config = '0') // Filter for loading configuration function FILTER_LOAD_CONFIGURATION ($no = '0') { // Is the value null, fix it :( - if (is_null($no)) $no = '0'; + if (is_null($no)) { + $no = '0'; + } // END - if // Check for cache extension, cache-array and if the requested configuration is in cache if ((isset($GLOBALS['cache_array']['config'][$no])) && (is_array($GLOBALS['cache_array']['config'][$no]))) {