// Filter for flushing the output
function FILTER_FLUSH_OUTPUT () {
+ // Is this filter called?
+ if (isset($GLOBALS[__FUNCTION__])) {
+ // Abort here
+ reportBug(__FUNCTION__, __LINE__, 'Double call of ' . __FUNCTION__ . ' causes problems with sent headers.');
+ } // END - if
+
+ // Mark this filter as called
+ $GLOBALS[__FUNCTION__] = TRUE;
+
// Simple, he?
outputHtml();
}
// Filter for loading user data
function FILTER_FETCH_USER_DATA ($userid = NULL) {
// Is the userid not set?
- if (!isValidUserId($userid)) {
+ if (!isValidId($userid)) {
// Then use member id
$userid = getMemberId();
} // END - if