Permalink
Browse files

Readable variable initialization

git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@952 7c3ca157-0c34-0410-bff1-cbf682f78f5c
  • Loading branch information...
1 parent 1988a26 commit 28b2b8db72b6508b59b9eb69c1df16b1454e4330 jakubvrana committed Jul 30, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 adminer/select.inc.php
@@ -59,8 +59,8 @@ function apply_sql_function($function, $column) {
$result = true;
$affected = 0;
$command = ($_POST["delete"] ? ($_POST["all"] && !$where ? "TRUNCATE " : "DELETE FROM ") : ($_POST["clone"] ? "INSERT INTO " : "UPDATE ")) . idf_escape($_GET["select"]);
+ $set = array();
if (!$_POST["delete"]) {
- $set = array();
foreach ($columns as $name => $val) { //! should check also for edit or insert privileges
$val = process_input($fields[$name]);
if ($_POST["clone"]) {

0 comments on commit 28b2b8d

Please sign in to comment.