From 28b2b8db72b6508b59b9eb69c1df16b1454e4330 Mon Sep 17 00:00:00 2001 From: jakubvrana Date: Thu, 30 Jul 2009 15:53:10 +0000 Subject: [PATCH] Readable variable initialization git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@952 7c3ca157-0c34-0410-bff1-cbf682f78f5c --- adminer/select.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adminer/select.inc.php b/adminer/select.inc.php index 19181a01..8e1ab2ee 100644 --- a/adminer/select.inc.php +++ b/adminer/select.inc.php @@ -59,8 +59,8 @@ if ($_POST && !$error) { $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"]) {