summaryrefslogtreecommitdiff
path: root/modules/system/system.install
diff options
context:
space:
mode:
Diffstat (limited to 'modules/system/system.install')
-rw-r--r--modules/system/system.install16
1 files changed, 9 insertions, 7 deletions
diff --git a/modules/system/system.install b/modules/system/system.install
index 434787605..51b54af70 100644
--- a/modules/system/system.install
+++ b/modules/system/system.install
@@ -2384,14 +2384,16 @@ function system_update_7053() {
->execute();
}
- // Create the same menus as in menu_install().
- db_insert('menu_custom')
- ->fields(array('menu_name' => 'user-menu', 'title' => 'User Menu', 'description' => "The <em>User</em> menu contains links related to the user's account, as well as the 'Log out' link."))
- ->execute();
+ if (db_table_exists('menu_custom')) {
+ // Create the same menus as in menu_install().
+ db_insert('menu_custom')
+ ->fields(array('menu_name' => 'user-menu', 'title' => 'User Menu', 'description' => "The <em>User</em> menu contains links related to the user's account, as well as the 'Log out' link."))
+ ->execute();
- db_insert('menu_custom')
- ->fields(array('menu_name' => 'management', 'title' => 'Management', 'description' => "The <em>Management</em> menu contains links for administrative tasks."))
- ->execute();
+ db_insert('menu_custom')
+ ->fields(array('menu_name' => 'management', 'title' => 'Management', 'description' => "The <em>Management</em> menu contains links for administrative tasks."))
+ ->execute();
+ }
}
/**