]> git.joonet.de Git - adminer.git/commitdiff
Drop view from alter
authorJakub Vrana <jakub@vrana.cz>
Fri, 25 Mar 2011 22:59:27 +0000 (23:59 +0100)
committerJakub Vrana <jakub@vrana.cz>
Fri, 25 Mar 2011 22:59:27 +0000 (23:59 +0100)
adminer/create.inc.php
adminer/view.inc.php

index 473ae4cc09dbcc84561ea41e0b18714d6d228664..acef23f7b674431879211d4ed969b8542f40aca5 100644 (file)
@@ -165,7 +165,7 @@ foreach ($engines as $engine) {
 <?php echo (support("comment") ? checkbox("", "", $comments, lang('Comment'), "columnShow(this.checked, 6); toggle('Comment'); if (this.checked) this.form['Comment'].focus();") . ' <input id="Comment" name="Comment" value="' . h($row["Comment"]) . '" maxlength="60"' . ($comments ? '' : ' class="hidden"') . '>' : ''); ?>
 <p>
 <input type="submit" value="<?php echo lang('Save'); ?>">
-<?php if (strlen($_GET["create"])) { ?><input type="submit" name="drop" value="<?php echo lang('Drop'); ?>"<?php echo confirm(); ?>><?php } ?>
+<?php if ($_GET["create"] != "") { ?><input type="submit" name="drop" value="<?php echo lang('Drop'); ?>"<?php echo confirm(); ?>><?php } ?>
 <input type="hidden" name="token" value="<?php echo $token; ?>">
 <?php
 if (support("partitioning")) {
index 76e6959a67652ac3c2336f1c0aeee813c5b7962c..3d2f53a7f56b83720a728004d9b98523eff243cb 100644 (file)
@@ -30,5 +30,6 @@ if ($_POST) {
 <p>
 <?php if ($dropped) { // old view was dropped but new wasn't created ?><input type="hidden" name="dropped" value="1"><?php } ?>
 <input type="submit" value="<?php echo lang('Save'); ?>">
+<?php if ($_GET["view"] != "") { ?><input type="submit" name="drop" value="<?php echo lang('Drop'); ?>"<?php echo confirm(); ?>><?php } ?>
 <input type="hidden" name="token" value="<?php echo $token; ?>">
 </form>