summaryrefslogtreecommitdiff
path: root/httemplate/config
diff options
context:
space:
mode:
authorivan <ivan>2001-10-26 09:50:21 +0000
committerivan <ivan>2001-10-26 09:50:21 +0000
commit1904d44bb20adf403e21513db7470153f751d605 (patch)
tree6865ae030d86678fa69fa62e7c014dfacc410e84 /httemplate/config
parent8426653cbe5dfb78ad9b06b6d1e91bcdb4e7dae3 (diff)
otherwise people will have problems with `0' zero
Diffstat (limited to 'httemplate/config')
-rw-r--r--httemplate/config/config-process.cgi4
1 files changed, 2 insertions, 2 deletions
diff --git a/httemplate/config/config-process.cgi b/httemplate/config/config-process.cgi
index 99957ebd9..690512977 100644
--- a/httemplate/config/config-process.cgi
+++ b/httemplate/config/config-process.cgi
@@ -10,7 +10,7 @@
foreach my $type ( ref($i->type) ? @{$i->type} : $i->type ) {
if ( $type eq '' ) {
} elsif ( $type eq 'textarea' ) {
- if ( $cgi->param($i->key. $n) ) {
+ if ( $cgi->param($i->key. $n) ne '' ) {
my $value = $cgi->param($i->key. $n);
$value =~ s/\r\n/\n/g; #browsers?
$conf->set($i->key, $value);
@@ -27,7 +27,7 @@
push @delete, $i->key;
}
} elsif ( $type eq 'text' ) {
- if ( $cgi->param($i->key. $n) ) {
+ if ( $cgi->param($i->key. $n) ne '' ) {
$conf->set($i->key, $cgi->param($i->key. $n));
} else {
$conf->delete($i->key);