summaryrefslogtreecommitdiffstats
path: root/usr/local
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2010-08-30 17:04:39 +0000
committerErmal <eri@pfsense.org>2010-08-30 17:05:14 +0000
commitd76c92982be80f07b71fa8f0ea89e7212bce5faa (patch)
tree1fd0172f66c088b34fe04c99bcbc82aad2f8ab80 /usr/local
parent830c33be3c3e4cf2216672d17b9c40be99828784 (diff)
downloadpfsense-d76c92982be80f07b71fa8f0ea89e7212bce5faa.zip
pfsense-d76c92982be80f07b71fa8f0ea89e7212bce5faa.tar.gz
Correct checking if a ppp is in use to not allow accidental deletions.
Diffstat (limited to 'usr/local')
-rw-r--r--usr/local/www/interfaces_ppps.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/local/www/interfaces_ppps.php b/usr/local/www/interfaces_ppps.php
index 01dcdb5..1e22bd0 100644
--- a/usr/local/www/interfaces_ppps.php
+++ b/usr/local/www/interfaces_ppps.php
@@ -52,7 +52,7 @@ function ppp_inuse($num) {
global $config, $g, $a_ppps;
$iflist = get_configured_interface_list(false, true);
foreach ($iflist as $if) {
- if (isset($config['interfaces'][$if]['ptpid']) && $config['interfaces'][$if]['ptpid'] == $a_ppps[$num]['ptpid'])
+ if ($config['interfaces'][$if]['if'] == $a_ppps[$num]['if'])
return true;
}
return false;
OpenPOWER on IntegriCloud