Mercurial > hgrepos > hgweb.cgi > s4
changeset 141:6da489b573ca
Do not try to cat cached file when return val is null.
author | HIROSE Yuuji <yuuji@gentei.org> |
---|---|
date | Tue, 06 Oct 2015 13:35:28 +0859 |
parents | cacbeb49fed9 |
children | ca6428b37dd2 |
files | s4-funcs.sh |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/s4-funcs.sh Tue Oct 06 10:29:58 2015 +0859 +++ b/s4-funcs.sh Tue Oct 06 13:35:28 2015 +0859 @@ -2395,6 +2395,7 @@ sp="${args:+ }" form="" val="" if [ -n "$rowid" ]; then + # err genform2a: Seeking for "$2.$name, type=$type" val=`getvalbyid $2 $name $rowid $td` err genform3a: getvalbyid $2 $name $rowid $td err genform3b: val="[$val]" @@ -2405,7 +2406,7 @@ case "$type" in text*) cgiform=cgi_multi_$type - if [ -s $td/$name.count ]; then + if [ -s $td/$name.count -a -n "$val" ]; then form=`$cgiform $name $td` val=$(echo "$val"| while read fn; do