Changeset 1592 in ProjectBuilder for devel/pb-modules/lib/ProjectBuilder/Base.pm


Ignore:
Timestamp:
May 24, 2012, 1:48:32 AM (12 years ago)
Author:
Bruno Cornec
Message:
Fix another bug in pb_check_req on the default value used with a
where an undef wasn't different from a bad integer.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • devel/pb-modules/lib/ProjectBuilder/Base.pm

    r1585 r1592  
    483483
    484484my $file = shift;
    485 my $opt = shift || 1;
     485my $opt = shift;
    486486my $found = undef;
     487
     488$opt = 1 if (not defined $opt);
    487489
    488490pb_log(2,"Checking availability of $file...");
Note: See TracChangeset for help on using the changeset viewer.