]> git.mxchange.org Git - mailer.git/blobdiff - inc/filter/admins_filter.php
Extension ext-network continued:
[mailer.git] / inc / filter / admins_filter.php
index d38acb9af7c467d8c16345e2b8f2eae52ea15b14..7e5faa555716d506255063b18d16adf5679ebd26 100644 (file)
@@ -17,7 +17,7 @@
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
  * Copyright (c) 2009 - 2011 by Mailer Developer Team                   *
- * For more information visit: http://www.mxchange.org                  *
+ * For more information visit: http://mxchange.org                      *
  *                                                                      *
  * This program is free software; you can redistribute it and/or modify *
  * it under the terms of the GNU General Public License as published by *
@@ -44,10 +44,10 @@ if (!defined('__SECURITY')) {
 function FILTER_ADD_EXTRA_SQL_DATA ($add = '') {
        // Is the admins extension updated? (should be!)
        //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Called!');
-       if (isExtensionInstalledAndNewer('admins', '0.3.0')) $add .= ', `default_acl` AS def_acl';
-       if (isExtensionInstalledAndNewer('admins', '0.6.7')) $add .= ', `la_mode`';
-       if (isExtensionInstalledAndNewer('admins', '0.7.2')) $add .= ', `login_failures`, UNIX_TIMESTAMP(`last_failure`) AS last_failure';
-       if (isExtensionInstalledAndNewer('admins', '0.7.3')) $add .= ', `expert_settings`, `expert_warning`';
+       if (isExtensionInstalledAndNewer('admins', '0.3.0')) $add .= ',`default_acl`';
+       if (isExtensionInstalledAndNewer('admins', '0.6.7')) $add .= ',`la_mode`';
+       if (isExtensionInstalledAndNewer('admins', '0.7.2')) $add .= ',`login_failures`,UNIX_TIMESTAMP(`last_failure`) AS `last_failure`';
+       if (isExtensionInstalledAndNewer('admins', '0.7.3')) $add .= ',`expert_settings`,`expert_warning`';
 
        // Return it
        //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Done!');
@@ -64,7 +64,7 @@ function FILTER_RESET_ADMINS_LOGIN_FAILURES ($filterData) {
        // Prepare update data
        $postData['login'][getCurrentAdminId()]          = $filterData['login'];
        $postData['login_failures'][getCurrentAdminId()] = '0';
-       $postData['last_failure'][getCurrentAdminId()]   = null;
+       $postData['last_failure'][getCurrentAdminId()]   = NULL;
 
        // Change it in the admin
        adminsChangeAdminAccount($postData);