X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Ffilter%2Fadmins_filter.php;h=7e5faa555716d506255063b18d16adf5679ebd26;hb=3e4fd7d36d85a58509b19060ae892f37299be92e;hp=d38acb9af7c467d8c16345e2b8f2eae52ea15b14;hpb=d2e72bd3391ac4513751d9c87fb2adf0238a611e;p=mailer.git diff --git a/inc/filter/admins_filter.php b/inc/filter/admins_filter.php index d38acb9af7..7e5faa5557 100644 --- a/inc/filter/admins_filter.php +++ b/inc/filter/admins_filter.php @@ -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);