1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-10 08:34:20 +02:00

Display warning for missing UPDATE privilege (bug #3466883)

This commit is contained in:
Jakub Vrana
2012-12-15 23:13:51 -08:00
parent 0069d9f13e
commit ce83605174
4 changed files with 6 additions and 1 deletions

View File

@@ -77,7 +77,9 @@ if ($row === false) {
<form action="" method="post" enctype="multipart/form-data" id="form">
<?php
if ($fields) {
if (!$fields) {
echo "<p class='error'>" . lang('You have no privileges to update this table.') . "\n";
} else {
echo "<table cellspacing='0' onkeydown='return editingKeydown(event);'>\n";
foreach ($fields as $name => $field) {
echo "<tr><th>" . $adminer->fieldName($field);