Skip to content

Commit

Permalink
Prefilling an empty input field with “Bench_”
Browse files Browse the repository at this point in the history
  • Loading branch information
Geert De Deckere committed Jun 20, 2009
1 parent 2e3d5c8 commit c387531
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion views/codebench.php
Expand Up @@ -155,7 +155,7 @@

<form id="runner" method="post" action="<?php echo URL::site('codebench') ?>">
<h1>
<input name="class" type="text" value="<?php echo $class ?>" size="25" title="Name of the Codebench library to run" />
<input name="class" type="text" value="<?php echo ($class !== '') ? $class : 'Bench_' ?>" size="25" title="Name of the Codebench library to run" />
<input type="submit" value="Run" />
<?php if ( ! empty($class)) { ?>
<?php if (empty($codebench)) { ?>
Expand Down

0 comments on commit c387531

Please sign in to comment.