diff --git a/admin/admin_attach_cp.php b/admin/admin_attach_cp.php
index 6e32a7d17..8be0ef95f 100644
--- a/admin/admin_attach_cp.php
+++ b/admin/admin_attach_cp.php
@@ -398,7 +398,7 @@ if ($view === 'attachments') {
for ($i = 0, $iMax = count($attachments); $i < $iMax; $i++) {
$delete_box = '';
- for ($j = 0, $iMax = count($delete_id_list); $j < $iMax; $j++) {
+ for ($j = 0, $jMax = count($delete_id_list); $j < $jMax; $j++) {
if ($delete_id_list[$j] == $attachments[$i]['attach_id']) {
$delete_box = '';
break;
@@ -409,7 +409,7 @@ if ($view === 'attachments') {
// Is the Attachment assigned to more than one post ?
// If it's not assigned to any post, it's an private message thingy. ;)
- $post_titles = array();
+ $post_titles = [];
$sql = "SELECT *
FROM " . BB_ATTACHMENTS . "
diff --git a/admin/admin_extensions.php b/admin/admin_extensions.php
index cb5920f87..b9cea0fa1 100644
--- a/admin/admin_extensions.php
+++ b/admin/admin_extensions.php
@@ -252,7 +252,7 @@ if ($submit && $mode == 'groups') {
$allowed_list = array();
for ($i = 0, $iMax = count($group_allowed_list); $i < $iMax; $i++) {
- for ($j = 0, $jMax = count($group_change_list); $j < $iMax; $j++) {
+ for ($j = 0, $jMax = count($group_change_list); $j < $jMax; $j++) {
if ($group_allowed_list[$i] == $group_change_list[$j]) {
$allowed_list[$j] = 1;
}
diff --git a/admin/admin_forumauth.php b/admin/admin_forumauth.php
index 377b9f3a5..08f8771d7 100644
--- a/admin/admin_forumauth.php
+++ b/admin/admin_forumauth.php
@@ -163,7 +163,7 @@ if (empty($forum_id)) {
reset($simple_auth_ary);
foreach ($simple_auth_ary as $key => $auth_levels) {
$matched = 1;
- for ($k = 0, $kMax = count($auth_levels); $k < $iMax; $k++) {
+ for ($k = 0, $kMax = count($auth_levels); $k < $kMax; $k++) {
$matched_type = $key;
if ($forum_rows[0][$forum_auth_fields[$k]] != $auth_levels[$k]) {
@@ -189,7 +189,7 @@ if (empty($forum_id)) {
if (empty($adv)) {
$simple_auth = '