summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorBill Marquette <billm@pfsense.org>2005-09-04 14:18:29 +0000
committerBill Marquette <billm@pfsense.org>2005-09-04 14:18:29 +0000
commit89a8ec54a0c21d4c6ced9bfe2bdcabfea6064e6f (patch)
tree5db7d7acd86efce57ca8e964a7394542583fa191 /etc
parentd89924da0b4ffeef4b445254e2df24eb94c6d777 (diff)
downloadpfsense-89a8ec54a0c21d4c6ced9bfe2bdcabfea6064e6f.zip
pfsense-89a8ec54a0c21d4c6ced9bfe2bdcabfea6064e6f.tar.gz
Arrays start at 0 not 1
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/filter.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc
index f3b90c4..5fc189f 100644
--- a/etc/inc/filter.inc
+++ b/etc/inc/filter.inc
@@ -160,7 +160,7 @@ function filter_configure_sync() {
$rules_file = `/bin/cat /tmp/rules.debug`;
$line_split = split("\n", $rules_file);
if(is_array($line_split))
- $line_error = "The line in question reads [{$line_number}]: " . $line_split[$line_number];
+ $line_error = "The line in question reads [{$line_number}]: " . $line_split[$line_number-1];
file_notice("filter_load", "There were error(s) loading the rules: " . $rules_error . " " . $line_error, "Filter Reload", "");
log_error("There were error(s) loading the rules: " . $rules_error . " - " . $line_error);
return;
OpenPOWER on IntegriCloud