Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 90b47258

Von Tamino Steinert vor etwa 1 Jahr hinzugefügt

  • ID 90b4725895e905ade31ec2a7bef2e3d8641419ba
  • Vorgänger 2401956f
  • Nachfolger cd14a8ba

FIX: Stringvergleich mit 'eq'

Unterschiede anzeigen:

SL/Presenter/Tag.pm
459 459

  
460 460
  $onclick = 'if (!confirm("'. _J(delete($attributes{confirm})) .'")) return false; ' . $onclick if $attributes{confirm};
461 461

  
462
  if ( $attributes{tag} == 'input' ) {
462
  if ( $attributes{tag} eq 'input' ) {
463 463
    html_tag('input', undef, %attributes, value => $value, (onclick => $onclick)x!!$onclick)
464 464
  }
465
  elsif ( $attributes{tag} == 'button' ) {
465
  elsif ( $attributes{tag} eq 'button' ) {
466 466
    html_tag('button', undef, %attributes, value => $value, (onclick => $onclick)x!!$onclick);
467 467
  }
468 468
}

Auch abrufbar als: Unified diff