'what' shouldn't be checked so strictly, but 'action' must???
authorRoland Häder <roland@mxchange.org>
Fri, 4 Dec 2009 01:42:00 +0000 (01:42 +0000)
committerRoland Häder <roland@mxchange.org>
Fri, 4 Dec 2009 01:42:00 +0000 (01:42 +0000)
inc/wrapper-functions.php

index cd0b929be717077e111e5233e8f3448cf5c80761..38a6eb12d2288b27863acdfe0948e317ce16fae9 100644 (file)
@@ -504,7 +504,7 @@ function setWhatFromConfig ($configEntry) {
 // Checks wether what is set and optionally aborts on miss
 function isWhatSet ($strict =  false) {
        // Check for it
 // Checks wether what is set and optionally aborts on miss
 function isWhatSet ($strict =  false) {
        // Check for it
-       $isset = ((isset($GLOBALS['what'])) && (!empty($GLOBALS['what'])));
+       $isset = isset($GLOBALS['what']);
 
        // Should we abort here?
        if (($strict === true) && ($isset === false)) {
 
        // Should we abort here?
        if (($strict === true) && ($isset === false)) {