IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 17, 2009, 10:43:51 AM (17 years ago)
Author:
bills
Message:

check if defined($val) instead of if ($val) to allow for zero values

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/DataStoreServer/scripts/dsprodindex

    r23876 r23901  
    118118    for (my $i = 0; $i < $numRows; $i++) {
    119119        my $val = $col->[$i];
    120         if (!$val) {
     120        if (!defined($val)) {
    121121            die "value for column $c in row $i is null";
    122122            next;
     
    134134        my $val = $column[$c]->[$r];
    135135        my $width = $col_widths[$c];
    136         if ($val) {
     136        if (defined($val)) {
    137137            printf "%-*s|", $width, $val;
    138138        } else {
Note: See TracChangeset for help on using the changeset viewer.