Skip to content

Commit

Permalink
Item11349: defined vs true mistake
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.foswiki.org/trunk@13375 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
PaulHarvey authored and PaulHarvey committed Dec 11, 2011
1 parent f1b75d2 commit 95ce397
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/lib/Foswiki/Address.pm
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,9 @@ sub parse {
%opts = ( %{ $this->{parseopts} }, %opts );
ASSERT(
( !defined $opts{rev} || $opts{rev} =~ /^[-\+]?\d+$/ ),
"rev: '" . ( $opts{rev} ? $opts{rev} : 'undef' ) . "' is numeric"
"rev: '"
. ( defined $opts{rev} ? $opts{rev} : 'undef' )
. "' is numeric"
) if DEBUG;
ASSERT( $opts{isA} or defined $opts{existAs} ) if DEBUG;
if ( $path =~ s/\@([-\+]?\d+)$// ) {
Expand Down

0 comments on commit 95ce397

Please sign in to comment.