summaryrefslogtreecommitdiff
path: root/pages
diff options
context:
space:
mode:
Diffstat (limited to 'pages')
-rw-r--r--pages/rules.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/pages/rules.inc b/pages/rules.inc
index 1238b7d..967a4b4 100644
--- a/pages/rules.inc
+++ b/pages/rules.inc
@@ -58,7 +58,7 @@ require_once $_SERVER['DOCUMENT_ROOT'] . '/includes/components/header.inc';
?>
- <?php $index = 1; foreach ($rules as $rule): ?>
+ <?php foreach (array_values($rules) as $index => $rule): $index++; ?>
<h4 style="margin-top: 20px;">
<b>Rule <?= $index ?>: <?= str_replace("<", "&lt;", str_replace(">", "&gt;", $rule["name"])) ?></b>
<?php if (in_array(false, $rule["approved"])): ?>