From 16424666c7c05a1d40f7344e13185ba237324128 Mon Sep 17 00:00:00 2001 From: Phil Davis Date: Thu, 7 Jan 2016 21:11:15 +0545 Subject: [PATCH] Unset $entries array after clearing table Without this, when the table is cleared then the "now old and gone" entries are being redisplayed the first time after the clear table happens. --- src/usr/local/www/diag_tables.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/usr/local/www/diag_tables.php b/src/usr/local/www/diag_tables.php index 2c24d8c677..c0d6146920 100644 --- a/src/usr/local/www/diag_tables.php +++ b/src/usr/local/www/diag_tables.php @@ -90,6 +90,7 @@ if ($_POST['clearall']) { exec("/sbin/pfctl -t " . escapeshellarg($tablename) . " -T delete " . escapeshellarg($entry), $delete); } } + unset($entries); } if (($tablename == "bogons") || ($tablename == "bogonsv6")) {