From f16986574a592af2a3a1cda7c77d3b562aa65d66 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?G=C3=A1bor=20Hojtsy?= <gabor@hojtsy.hu>
Date: Wed, 16 Jan 2008 10:37:30 +0000
Subject: [PATCH] #209077 by bec: missing initialization for the placeholders
 array in drupal_write_record()

---
 includes/common.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/includes/common.inc b/includes/common.inc
index f3c915425090..34758a39715b 100644
--- a/includes/common.inc
+++ b/includes/common.inc
@@ -3246,7 +3246,7 @@ function drupal_write_record($table, &$object, $update = array()) {
     return FALSE;
   }
 
-  $fields = $defs = $values = $serials = array();
+  $fields = $defs = $values = $serials = $placeholders = array();
 
   // Go through our schema, build SQL, and when inserting, fill in defaults for
   // fields that are not set.
-- 
GitLab