]> git.mxchange.org Git - mailer.git/commitdiff
getAction() now allows non-strict checking of existence of 'action' cache element...
authorRoland Häder <roland@mxchange.org>
Mon, 5 Apr 2010 01:40:14 +0000 (01:40 +0000)
committerRoland Häder <roland@mxchange.org>
Mon, 5 Apr 2010 01:40:14 +0000 (01:40 +0000)
inc/wrapper-functions.php

index 48db9bbc05b706263abad490660594bfce5b9fb4..9a885ede7f13c7eaad08ed1403536c15132497ec 100644 (file)
@@ -563,12 +563,12 @@ function isWhatSet ($strict =  false) {
 }
 
 // Getter for 'action' value
-function getAction () {
+function getAction ($strict = true) {
        // Default is null
        $action = null;
 
        // Is the value set?
-       if (isActionSet(true)) {
+       if (isActionSet(($strict) && (getOutputMode() == 0))) {
                // Then use it
                $action = $GLOBALS['action'];
        } // END - if