IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 28, 2006, 12:22:32 PM (20 years ago)
Author:
jhoblitt
Message:

VERSION 0.32
fix handling of NULL/undef psTimes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/glueforge/templates/psdb/metadata

    r10232 r10235  
    1010    if (!psMetadataAdd(md, PS_LIST_TAIL, "[% item.name %]", [% item.mtype %], [% item.comment %], "[% item.value %]")) {
    1111[% ELSIF item.mtype == "PS_DATA_TIME" -%]
    12 [% IF defined(item.value) -%]
     12[% IF DEFINED(item.value) -%]
    1313    [% item.ctype %] [% item.name %] = psTimeFromISO("[% item.value %]", [% item.timetype %]);
    1414    if (!psMetadataAdd(md, PS_LIST_TAIL, "[% item.name %]", [% item.mtype %], [% item.comment %], [% item.name %])) {
     
    2424        return false;
    2525    }
    26 [% IF item.mtype == "PS_DATA_TIME" -%]
     26[% IF item.mtype == "PS_DATA_TIME" AND DEFINED(item.value) -%]
    2727    psFree([% item.name %]);
    2828[% END -%]
Note: See TracChangeset for help on using the changeset viewer.