$sql = trim($sql);
// Is 'enable_codes' not set? Then set it to true
- if (!isset($data['enable_codes'])) $data['enable_codes'] = true;
+ if (!isset($data['enable_codes'])) {
+ $data['enable_codes'] = true;
+ } // END - if
// Is there still a query left?
if (!empty($sql)) {
// Filter for updating/validating login data
function FILTER_UPDATE_LOGIN_DATA () {
// Add missing array
- if ((!isset($GLOBALS['last_online'])) || (!is_array($GLOBALS['last_online']))) $GLOBALS['last_online'] = array();
+ if ((!isset($GLOBALS['last_online'])) || (!is_array($GLOBALS['last_online']))) {
+ $GLOBALS['last_online'] = array();
+ } // END - if
// Recheck if logged in
- if (!isMember()) return false;
+ if (!isMember()) {
+ return false;
+ } // END - if
// Secure user id
setMemberId(getSession('userid'));
// Filter for initializing randomizer
function FILTER_INIT_RANDOMIZER () {
// Only execute this filter if installed
- if ((!isInstalled()) || (!isExtensionInstalledAndNewer('other', '0.2.5'))) return;
+ if ((!isInstalled()) || (!isExtensionInstalledAndNewer('other', '0.2.5'))) {
+ return;
+ } // END - if
// Take a prime number which is long (if you know a longer one please try it out!)
setConfigEntry('_PRIME', 591623);