X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fwrapper-functions.php;h=b76f513d39a06a91a60111ec4535c8be4051ab0b;hb=16ec3c0b28ff8ac1b1e626cca9cc934433d2510f;hp=c7711857d65a7010d4f249c7e64b5e3320931989;hpb=9eb4caf6c374ebfb37b73e4549ef6fba9462dcee;p=mailer.git diff --git a/inc/wrapper-functions.php b/inc/wrapper-functions.php index c7711857d6..b76f513d39 100644 --- a/inc/wrapper-functions.php +++ b/inc/wrapper-functions.php @@ -488,12 +488,12 @@ function setWhatFromConfig ($configEntry) { } // Checks wether what is set and optionally aborts on miss -function isWhatSet ($abortOnMiss = false) { +function isWhatSet ($strict = false) { // Check for it $isset = (isset($GLOBALS['what'])); // Should we abort here? - if (($abortOnMiss === true) && ($isset === false)) { + if (($strict === true) && ($isset === false)) { // Output backtrace debug_report_bug('what is empty.'); } // END - if @@ -523,12 +523,12 @@ function setAction ($newAction) { } // Checks wether action is set and optionally aborts on miss -function isActionSet ($abortOnMiss = false) { +function isActionSet ($strict = false) { // Check for it $isset = (isset($GLOBALS['action'])); // Should we abort here? - if (($abortOnMiss === true) && ($isset === false)) { + if (($strict === true) && ($isset === false)) { // Output backtrace debug_report_bug('action is empty.'); } // END - if @@ -538,12 +538,12 @@ function isActionSet ($abortOnMiss = false) { } // Getter for 'module' value -function getModule () { +function getModule ($strict = true) { // Default is null $module = null; // Is the value set? - if (isModuleSet(true)) { + if (isModuleSet($strict)) { // Then use it $module = $GLOBALS['module']; } // END - if @@ -559,12 +559,12 @@ function setModule ($newModule) { } // Checks wether module is set and optionally aborts on miss -function isModuleSet ($abortOnMiss = false) { +function isModuleSet ($strict = false) { // Check for it $isset = (!empty($GLOBALS['module'])); // Should we abort here? - if (($abortOnMiss === true) && ($isset === false)) { + if (($strict === true) && ($isset === false)) { // Output backtrace print 'Module not set!
'; debug_print_backtrace(); @@ -593,16 +593,16 @@ function getOutputMode () { // Setter for 'output_mode' value function setOutputMode ($newOutputMode) { - $GLOBALS['output_mode'] = SQL_ESCAPE($newOutputMode); + $GLOBALS['output_mode'] = (int) $newOutputMode; } // Checks wether output_mode is set and optionally aborts on miss -function isOutputModeSet ($abortOnMiss = false) { +function isOutputModeSet ($strict = false) { // Check for it $isset = (isset($GLOBALS['output_mode'])); // Should we abort here? - if (($abortOnMiss === true) && ($isset === false)) { + if (($strict === true) && ($isset === false)) { // Output backtrace debug_report_bug('output_mode is empty.'); } // END - if