From 0eb731d5e2885da281a9b97b2295b1182f25741c Mon Sep 17 00:00:00 2001 From: Dries Buytaert <dries@buytaert.net> Date: Sun, 11 Dec 2005 10:40:07 +0000 Subject: [PATCH] - Patch #40463 by chx and baudolino: fixed fatal error in forms.inc. --- database/updates.inc | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/database/updates.inc b/database/updates.inc index d86fd751d76d..bf446eee9cfb 100644 --- a/database/updates.inc +++ b/database/updates.inc @@ -1223,3 +1223,15 @@ function system_update_159() { return $ret; } + +function system_update_160() { + $types = module_invoke('node', 'get_types'); + if (is_array($types)) { + foreach($types as $type) { + if (!is_array(variable_get("node_options_$type", array()))) { + variable_set("node_options_$type", array()); + } + } + } + return array(); +} -- GitLab