From 7e7ffd983bfbdc4f9e67201c522c4ba54a35c0f3 Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Tue, 20 Nov 2012 10:49:00 -0500 Subject: [PATCH] Undefined variables when copying a row --- tbl_change.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tbl_change.php b/tbl_change.php index e76e8112df..f8b535a389 100644 --- a/tbl_change.php +++ b/tbl_change.php @@ -170,7 +170,7 @@ if (isset($where_clause)) { // Copying a row - fetched data will be inserted as a new row, // therefore the where clause is needless. if (isset($_REQUEST['default_action']) && $_REQUEST['default_action'] === 'insert') { - unset($where_clause, $where_clauses); + $where_clause = $where_clauses = null; } // retrieve keys into foreign fields, if any