]> git.joonet.de Git - adminer.git/commitdiff
Fix JS error with no found rows
authorJakub Vrana <jakub@vrana.cz>
Mon, 8 Jul 2013 17:55:13 +0000 (10:55 -0700)
committerJakub Vrana <jakub@vrana.cz>
Mon, 8 Jul 2013 17:55:13 +0000 (10:55 -0700)
adminer/select.inc.php

index 621aab8674ec6e2c3dc2ac5ed1b0157ad8e58ecb..12837ae5a611f157eee1d12e18b961b1f5a22736 100644 (file)
@@ -488,7 +488,7 @@ if (!$columns) {
 <input type="submit" value="<?php echo lang('Save'); ?>"<?php echo ($_GET["modify"] ? '' : ' title="' . lang('Ctrl+click on a value to modify it.') . '" class="jsonly"'); ?>>
 <input type="submit" name="edit" value="<?php echo lang('Edit'); ?>">
 <input type="submit" name="clone" value="<?php echo lang('Clone'); ?>">
-<input type="submit" name="delete" value="<?php echo lang('Delete'); ?>" onclick="return confirm('<?php echo lang('Are you sure?'); ?> (' + (this.form['all'].checked ? <?php echo $found_rows; ?> : formChecked(this, /check/)) + ')');">
+<input type="submit" name="delete" value="<?php echo lang('Delete'); ?>" onclick="return confirm('<?php echo lang('Are you sure?'); ?> (' + (this.form['all'].checked ? '<?php echo $found_rows; ?>' : formChecked(this, /check/)) + ')');">
 </div></fieldset>
 <?php
                        }