From 273da871a6a0fd2c966cc191b1129fac44a28436 Mon Sep 17 00:00:00 2001 From: Allan Jardine Date: Tue, 6 Nov 2018 13:55:11 +0000 Subject: [PATCH] Dev: Fix error in how insert or update checks if the pkey should be given --- Editor.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Editor.php b/Editor.php index 57bff49..17ddd11 100644 --- a/Editor.php +++ b/Editor.php @@ -1895,7 +1895,7 @@ private function _insert_or_update_table ( $table, $values, $where=null ) } // Use pkey only for the host table - $pkey = in_array( $table, $this->_pkey ) !== false ? + $pkey = in_array( $table, $this->_table ) !== false ? $this->_pkey : '';