}
// Remove cache file
- RUN_FILTER('post_admin_edited', REQUEST_POST_ARRAY());
+ runFilterChain('post_admin_edited', REQUEST_POST_ARRAY());
}
// Make admin accounts editable
// Begin the edit loop
$SW = 2; $OUT = "";
- foreach ($POST['sel'] as $id => $sel) {
+ foreach ($POST['sel'] as $id => $selected) {
// Secure ID number
$id = bigintval($id);
// Get the admin's data
$result = SQL_QUERY_ESC("SELECT login, email, default_acl AS mode, la_mode FROM `{!_MYSQL_PREFIX!}_admins` WHERE id=%s LIMIT 1",
array($id), __FUNCTION__, __LINE__);
- if ((SQL_NUMROWS($result) == 1) && ($sel == 1)) {
+ if ((SQL_NUMROWS($result) == 1) && ($selected == 1)) {
// Entry found
$content = SQL_FETCHARRAY($result);
SQL_FREERESULT($result);
if ($accounts > 1) {
// Delete accounts
$SW = 2; $OUT = "";
- foreach ($POST['sel'] as $id => $sel) {
+ foreach ($POST['sel'] as $id => $selected) {
// Secure ID number
$id = bigintval($id);
// Get the admin's data
$result = SQL_QUERY_ESC("SELECT login, email, default_acl AS mode, la_mode FROM `{!_MYSQL_PREFIX!}_admins` WHERE id=%s LIMIT 1",
- array($id), __FUNCTION__, __LINE__);
+ array($id), __FUNCTION__, __LINE__);
if (SQL_NUMROWS($result) == 1) {
// Entry found
$content = SQL_FETCHARRAY($result);
}
// Remove cache if cache system is activated
- RUN_FILTER('post_admin_deleted', REQUEST_POST_ARRAY());
+ runFilterChain('post_admin_deleted', REQUEST_POST_ARRAY());
}
// List all admin accounts