// Checks wether what is set and optionally aborts on miss
function isWhatSet ($abortOnMiss = false) {
// Check for it
- $isset = (!empty($GLOBALS['what']));
+ $isset = (isset($GLOBALS['what']));
// Should we abort here?
if (($abortOnMiss === true) && ($isset === false)) {
// Checks wether action is set and optionally aborts on miss
function isActionSet ($abortOnMiss = false) {
// Check for it
- $isset = (!empty($GLOBALS['action']));
+ $isset = (isset($GLOBALS['action']));
// Should we abort here?
if (($abortOnMiss === true) && ($isset === false)) {