summaryrefslogtreecommitdiffstats
path: root/usr/local
diff options
context:
space:
mode:
authorBill Marquette <billm@pfsense.org>2005-03-27 20:24:29 +0000
committerBill Marquette <billm@pfsense.org>2005-03-27 20:24:29 +0000
commitedf14245a9681a7c1b27fef468c31f376b2d44fe (patch)
treeec474a8ead8e1563e7a905a34fedb43c7169396a /usr/local
parent4d762703bcecf23852f071317739af102664f1c6 (diff)
downloadpfsense-edf14245a9681a7c1b27fef468c31f376b2d44fe.zip
pfsense-edf14245a9681a7c1b27fef468c31f376b2d44fe.tar.gz
return true or false
Diffstat (limited to 'usr/local')
-rwxr-xr-xusr/local/www/guiconfig.inc3
1 files changed, 3 insertions, 0 deletions
diff --git a/usr/local/www/guiconfig.inc b/usr/local/www/guiconfig.inc
index 4c049d2..dd66f4b 100755
--- a/usr/local/www/guiconfig.inc
+++ b/usr/local/www/guiconfig.inc
@@ -443,6 +443,7 @@ function gentitle($pgname) {
}
/* Check if variable has changed, update and log if it has
+ * returns true if var changed
* varname = variable name in plain text
* orig = original value
* new = new value
@@ -453,7 +454,9 @@ function updatechanged($varname, $orig, $new) {
if ($orig != $new) {
$changedesc .= " {$varname}: \"{$orig}\" -> \"{$new}\"";
$orig = $new;
+ return true;
}
+ return false;
}
OpenPOWER on IntegriCloud