Skip to content

Commit

Permalink
changed an exists to defined, since that is what I meant
Browse files Browse the repository at this point in the history
  • Loading branch information
jberger committed Nov 4, 2011
1 parent 94124b4 commit 3e29d05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Mojolicious/Plugin/PPI.pm
Expand Up @@ -42,7 +42,7 @@ sub register {
}

$ppi->{line_numbers} = $opts{line_numbers} // 1; #/# highlight fix
$return .= '<div class="code"' . (exists $opts{id} ? " id=\"$opts{id}\"" : '') . '>' ;
$return .= '<div class="code"' . (defined $opts{id} ? " id=\"$opts{id}\"" : '') . '>' ;
$return .= $ppi->html( $filename );
if ($opts{toggle_button}) {
$return .= qq[\n<br><input type="submit" value="Toggle Line Numbers" onClick="toggleLineNumbers('$opts{id}')" />];
Expand Down

0 comments on commit 3e29d05

Please sign in to comment.