IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 21, 2006, 3:21:03 PM (20 years ago)
Author:
Paul Price
Message:

Ordering resulted in warnings.

File:
1 edited

Legend:

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

    r10125 r10126  
    11# Copyright (c) 2006  Paul Price, Joshua Hoblitt
    22#
    3 # $Id: Config.pm,v 1.5 2006-11-22 00:32:13 price Exp $
     3# $Id: Config.pm,v 1.6 2006-11-22 01:21:03 price Exp $
    44
    55package PS::IPP::Config;
     
    248248    foreach my $item (@$mdc) {
    249249        if ($item->{name} eq $name) {
    250             if ($item->{type} eq "STR") {
     250            if ($item->{class} eq "metadata") {
     251                return $item->{value};
     252            }
     253            if ($item->{class} eq "scalar" and $item->{type} eq "STR") {
    251254                # Redirect
    252255                return _mdLookupMDwithRedirect($mdc, $item->{value});
    253256            }
    254             carp "$name within metadata is not of type METADATA.\n" unless $item->{class} eq "metadata";
    255             return $item->{value};
     257            carp "$name within metadata is not of type METADATA or STR.\n";
     258            return undef;
    256259        }
    257260    }
Note: See TracChangeset for help on using the changeset viewer.