'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 cd0b929..38a6eb1 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
-       $isset = ((isset($GLOBALS['what'])) && (!empty($GLOBALS['what'])));
+       $isset = isset($GLOBALS['what']);
 
        // Should we abort here?
        if (($strict === true) && ($isset === false)) {