1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-06 14:46:36 +02:00

Add comment

This commit is contained in:
Jakub Vrana
2025-03-26 10:25:13 +01:00
parent c5f87110ff
commit 6e7158537f
2 changed files with 2 additions and 2 deletions

View File

@@ -92,7 +92,7 @@ if ($_POST["save"]) {
}
}
if (!support("table") && !$fields) {
if (!support("table") && !$fields) { // used by Mongo and SimpleDB
if (!$where) { // insert
$result = $driver->select($TABLE, array("*"), $where, array("*"));
$row = ($result ? $result->fetch_assoc() : false);

View File

@@ -738,7 +738,7 @@ function column_foreign_keys($table) {
/** Compute fields() from $_POST edit data
* @return Field[] same as fields()
*/
function fields_from_edit() {
function fields_from_edit() { // used by Mongo and SimpleDB
global $driver;
$return = array();
foreach ((array) $_POST["field_keys"] as $key => $val) {