Update of /cvsroot/netpass/NetPass/www/components/Admin
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30951
Modified Files:
FormNPApi
Log Message:
Index: FormNPApi
===================================================================
RCS file: /cvsroot/netpass/NetPass/www/components/Admin/FormNPApi,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- FormNPApi 8 Jun 2005 00:48:59 -0000 1.2
+++ FormNPApi 8 Jun 2005 02:57:06 -0000 1.3
@@ -5,14 +5,12 @@
</%args>
<%perl>
- my $anychanges = 0;
if ($submit eq "Commit Changes") {
foreach my $nparg (keys %ARGS) {
my $var;
if ($nparg =~ /^npapi:(\w+)$/) {
$var = $1;
- $anychanges = 1;
} else {
next;
}
@@ -22,7 +20,7 @@
}
$np->cfg->{'cfg'}->obj('npapi')->$var($ARGS{"npapi:$var"});
}
- $np->cfg->save(-user => $m->session->{'username'}) if $anychanges;
+ $np->cfg->save(-user => $m->session->{'username'});
}
sub getnpapivalue {
|