projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
8426653
)
otherwise people will have problems with `0' zero
author
ivan
<ivan>
Fri, 26 Oct 2001 09:50:21 +0000
(09:50 +0000)
committer
ivan
<ivan>
Fri, 26 Oct 2001 09:50:21 +0000
(09:50 +0000)
httemplate/config/config-process.cgi
patch
|
blob
|
history
diff --git
a/httemplate/config/config-process.cgi
b/httemplate/config/config-process.cgi
index
99957eb
..
6905129
100644
(file)
--- 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' ) {
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);
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' ) {
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);
$conf->set($i->key, $cgi->param($i->key. $n));
} else {
$conf->delete($i->key);