]> git.mxchange.org Git - mailer.git/blobdiff - inc/filters.php
New function introduced, missing function getPointsWord() added:
[mailer.git] / inc / filters.php
index 9985adf03d5852c2f38047a633125a2484a8a48c..9a42401776dee630449587843b186aacdfdc7966 100644 (file)
@@ -258,7 +258,9 @@ function FILTER_RUN_SQLS ($data) {
                                $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)) {
@@ -284,10 +286,14 @@ function FILTER_RUN_SQLS ($data) {
 // 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'));
@@ -324,7 +330,9 @@ function FILTER_UPDATE_LOGIN_DATA () {
 // 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);