diff options
author | Dries Buytaert <dries@buytaert.net> | 2005-12-11 10:40:07 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2005-12-11 10:40:07 +0000 |
commit | 0eb731d5e2885da281a9b97b2295b1182f25741c (patch) | |
tree | 63361d0355d1de5a0453d87ac41e640fec150d75 /database/updates.inc | |
parent | b4552cd9770a0f6084c11e3e2a62909c1c76c956 (diff) | |
download | brdo-0eb731d5e2885da281a9b97b2295b1182f25741c.tar.gz brdo-0eb731d5e2885da281a9b97b2295b1182f25741c.tar.bz2 |
- Patch #40463 by chx and baudolino: fixed fatal error in forms.inc.
Diffstat (limited to 'database/updates.inc')
-rw-r--r-- | database/updates.inc | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/database/updates.inc b/database/updates.inc index d86fd751d..bf446eee9 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(); +} |