From 95f4b9308361cd5554865a353d4621b49d80de27 Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Mon, 27 Apr 2009 00:18:26 +0000 Subject: [PATCH] bug #2776520 (ON UPDATE property), bug was not in a released version --- tbl_relation.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tbl_relation.php b/tbl_relation.php index a9d6a6f85..211c5d99d 100644 --- a/tbl_relation.php +++ b/tbl_relation.php @@ -180,7 +180,7 @@ if (isset($_REQUEST['destination_foreign'])) { if (! empty($_REQUEST['on_delete'][$master_field_md5])) { $sql_query .= ' ON DELETE ' . $options_array[$_REQUEST['on_delete'][$master_field_md5]]; } - if (! empty($_REQUEST['on_update'][$master_field])) { + if (! empty($_REQUEST['on_update'][$master_field_md5])) { $sql_query .= ' ON UPDATE ' . $options_array[$_REQUEST['on_update'][$master_field_md5]]; } $sql_query .= ';';