$userid = NULL;
$isMember = convertBooleanToYesNo(isMember());
$isAdmin = convertBooleanToYesNo(isAdmin());
- $action = getActionFromModuleWhat(getModule(), getWhat());
+ $action = getActionFromModuleWhat(getModule(), getWhat(false));
// Valid userid?
if (isMember()) {
array(
getModule(),
$action,
- getWhat(),
+ getWhat(false),
convertZeroToNull($userid),
convertZeroToNull(determineReferralId()),
$isMember,
array(
getModule(),
$action,
- getWhat(),
+ getWhat(false),
convertZeroToNull($userid),
convertZeroToNull(determineReferralId()),
$isMember,
}
// Getter for 'what' value
-function getWhat () {
+function getWhat ($strict = true) {
// Default is null
$what = NULL;
// Is the value set?
- if (isWhatSet(true)) {
+ if (isWhatSet($strict)) {
// Then use it
$what = $GLOBALS['__what'];
} // END - if
// 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']) && (!empty($GLOBALS['__what']))) || (is_null($GLOBALS['__what'])));
// Should we abort here?
if (($strict === true) && ($isset === false)) {
// Output backtrace
+ die(debug_get_printable_backtrace());
debug_report_bug(__FUNCTION__, __LINE__, 'what is empty.');
} // END - if
// Checks wether action is set and optionally aborts on miss
function isActionSet ($strict = false) {
// Check for it
- $isset = ((isset($GLOBALS['__action'])) && (!empty($GLOBALS['__action'])));
+ $isset = (((isset($GLOBALS['__action'])) && (!empty($GLOBALS['__action']))) || (is_null($GLOBALS['__action'])));
// Should we abort here?
if (($strict === true) && ($isset === false)) {