Readable variable initialization
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@952 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
parent
1988a2681c
commit
28b2b8db72
|
@ -59,8 +59,8 @@ if ($_POST && !$error) {
|
||||||
$result = true;
|
$result = true;
|
||||||
$affected = 0;
|
$affected = 0;
|
||||||
$command = ($_POST["delete"] ? ($_POST["all"] && !$where ? "TRUNCATE " : "DELETE FROM ") : ($_POST["clone"] ? "INSERT INTO " : "UPDATE ")) . idf_escape($_GET["select"]);
|
$command = ($_POST["delete"] ? ($_POST["all"] && !$where ? "TRUNCATE " : "DELETE FROM ") : ($_POST["clone"] ? "INSERT INTO " : "UPDATE ")) . idf_escape($_GET["select"]);
|
||||||
if (!$_POST["delete"]) {
|
|
||||||
$set = array();
|
$set = array();
|
||||||
|
if (!$_POST["delete"]) {
|
||||||
foreach ($columns as $name => $val) { //! should check also for edit or insert privileges
|
foreach ($columns as $name => $val) { //! should check also for edit or insert privileges
|
||||||
$val = process_input($fields[$name]);
|
$val = process_input($fields[$name]);
|
||||||
if ($_POST["clone"]) {
|
if ($_POST["clone"]) {
|
||||||
|
|
Loading…
Reference in a new issue