$isUsed = $GLOBALS['cache_probe_nicknames'][$userid];
} else {
// Determine it
- $isUsed = ((EXT_IS_ACTIVE('nickname')) && ((''.round($userid).'') != $userid));
+ $isUsed = ((EXT_IS_ACTIVE('nickname')) && (('' . round($userid) . '') != $userid));
// And write it to the cache
$GLOBALS['cache_probe_nicknames'][$userid] = $isUsed;
// 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)) {
return $isset;
}
+// Enables block-mode
+function enableBlockMode ($enabled = true) {
+ $GLOBALS['block_mode'] = $enabled;
+}
+
+// Checks wether block-mode is enabled
+function isBlockModeEnabled () {
+ // Abort if not set
+ if (!isset($GLOBALS['block_mode'])) {
+ // Needs to be fixed
+ debug_report_bug(__FUNCTION__ . ': block_mode is not set.');
+ } // END - if
+
+ // Return it
+ return $GLOBALS['block_mode'];
+}
+
// [EOF]
?>