IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 3, 2007, 12:49:39 PM (19 years ago)
Author:
Paul Price
Message:

Don't add flag and value if they're not defined.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/PS-IPP-Config/lib/PS/IPP/Metadata/Stats.pm

    r14442 r15185  
    11# Copyright (c) 2006  Paul Price, Joshua Hoblitt
    22#
    3 # $Id: Stats.pm,v 1.24 2007-08-08 21:50:32 price Exp $
     3# $Id: Stats.pm,v 1.25 2007-10-03 22:49:39 price Exp $
    44
    55package PS::IPP::Metadata::Stats;
     
    6363        my $value = $entry->{value};
    6464        my $flag = $entry->{flag};
     65        next unless defined $value and defined $flag;
    6566        if ($value =~ m|\S+\s+\S+|) {
    6667            # protect values with whitespace
Note: See TracChangeset for help on using the changeset viewer.