X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Ffilter%2Fadmins_filter.php;h=66cff72ea3220725ae11a6fa84f88c119655d3e7;hb=2df9f7a53f8b1dd5164f87824a324ccb3b6634cb;hp=d38acb9af7c467d8c16345e2b8f2eae52ea15b14;hpb=98e44adab9035e30efe78181b76d78c6e13ba574;p=mailer.git diff --git a/inc/filter/admins_filter.php b/inc/filter/admins_filter.php index d38acb9af7..66cff72ea3 100644 --- a/inc/filter/admins_filter.php +++ b/inc/filter/admins_filter.php @@ -16,8 +16,8 @@ * $Author:: $ * * -------------------------------------------------------------------- * * Copyright (c) 2003 - 2009 by Roland Haeder * - * Copyright (c) 2009 - 2011 by Mailer Developer Team * - * For more information visit: http://www.mxchange.org * + * Copyright (c) 2009 - 2012 by Mailer Developer Team * + * 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);